forked from qt-creator/qt-creator
Work around uiLanguages crash on Windows with 4.8.0
Task-number: QTCREATORBUG-721 Change-Id: I159c4ef85eba1eda9f3b7e3a001dd6991d578ffe Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
@@ -272,7 +272,8 @@ int main(int argc, char **argv)
|
||||
QTranslator translator;
|
||||
QTranslator qtTranslator;
|
||||
QStringList uiLanguages;
|
||||
#if QT_VERSION >= 0x040800
|
||||
// uiLanguages crashes on Windows with 4.8.0 release builds
|
||||
#if (QT_VERSION >= 0x040801) || (QT_VERSION >= 0x040800 && !defined(Q_OS_WIN))
|
||||
uiLanguages = QLocale::system().uiLanguages();
|
||||
#else
|
||||
uiLanguages << QLocale::system().name();
|
||||
|
||||
Reference in New Issue
Block a user