Compilation fix for Qt < 5.2.

This commit is contained in:
Jean-Marc Lasgouttes 2019-03-20 11:45:29 +01:00
parent d3979e798c
commit 0c8eea0fe5

View 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)));