]> git.lyx.org Git - features.git/commitdiff
Amend 0c8eea0fe526e
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 20 Mar 2019 11:36:39 +0000 (12:36 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 20 Mar 2019 11:36:39 +0000 (12:36 +0100)
src/frontends/qt4/GuiLyXFiles.cpp

index 4d4746df9270d235b0edf595ce68e69eb1c36e65..978a21df1a90034bbea0196ed8ece26c2c2e3b23 100644 (file)
@@ -58,11 +58,7 @@ void GuiLyXFiles::getFiles(QMap<QString, QString> & in, QString const type)
        string const system = addPath(package().system_support().absFileName(), fromqstr(type));
 
        // First, query the current language subdir (except for English)
-#if QT_VERSION >= 0x050200
-       QString const lang = languageCO->currentData().toString();
-#else
-       QString const lang = languageCO->currentText();
-#endif
+       QString const lang = languageCO->itemData(languageCO->currentIndex()).toString();
        if (!lang.startsWith("en")) {
                // First try with the full code
                dirs << toqstr(addPath(user, fromqstr(lang)));