]> git.lyx.org Git - features.git/commitdiff
Compilation fix for Qt < 5.2.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Mar 2019 10:45:29 +0000 (11:45 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Mar 2019 10:45:29 +0000 (11:45 +0100)
src/frontends/qt4/GuiLyXFiles.cpp

index c5d5c050f00683f6a05faac77c7a001640aadfa4..4d4746df9270d235b0edf595ce68e69eb1c36e65 100644 (file)
@@ -58,7 +58,11 @@ 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
        if (!lang.startsWith("en")) {
                // First try with the full code
                dirs << toqstr(addPath(user, fromqstr(lang)));