From: Jean-Marc Lasgouttes Date: Wed, 20 Mar 2019 10:45:29 +0000 (+0100) Subject: Compilation fix for Qt < 5.2. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2430 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0c8eea0fe526e17c75c524c0eacdacfd78d8d7b2;p=lyx.git Compilation fix for Qt < 5.2. --- diff --git a/src/frontends/qt4/GuiLyXFiles.cpp b/src/frontends/qt4/GuiLyXFiles.cpp index c5d5c050f0..4d4746df92 100644 --- a/src/frontends/qt4/GuiLyXFiles.cpp +++ b/src/frontends/qt4/GuiLyXFiles.cpp @@ -58,7 +58,11 @@ void GuiLyXFiles::getFiles(QMap & 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)));