From 0c8eea0fe526e17c75c524c0eacdacfd78d8d7b2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 20 Mar 2019 11:45:29 +0100 Subject: [PATCH] Compilation fix for Qt < 5.2. --- src/frontends/qt4/GuiLyXFiles.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)));