This commit is contained in:
Juergen Spitzmueller 2019-03-20 12:36:39 +01:00
parent 0c8eea0fe5
commit 07e20fbb2f

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