mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Compilation fix for Qt < 5.2.
This commit is contained in:
parent
d3979e798c
commit
0c8eea0fe5
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user