Use defined(Q_OS_WIN) in #elif to satisfy MSVC
It's always windows.
This commit is contained in:
parent
bda01b2044
commit
fcc62a1e1f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ int main(int argc, char *argv[])
|
||||||
if (translationPath.isEmpty()) {
|
if (translationPath.isEmpty()) {
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
translationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
translationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
#elif Q_OS_WIN
|
#elif defined(Q_OS_WIN)
|
||||||
translationPath = app.applicationDirPath() + "/translations";
|
translationPath = app.applicationDirPath() + "/translations";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue