forked from qt-creator/qt-creator
QmlPuppet: fix crash when multilanguage database is used
amends 81a36ac0ef
Change-Id: Ib4143432704569c84a57540a07f75fa2044aaf0e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
#include "import3d/import3d.h"
|
||||
|
||||
#include <qt5nodeinstanceclientproxy.h>
|
||||
#ifdef MULTILANGUAGE_TRANSLATIONPROVIDER
|
||||
#include <sqlitelibraryinitializer.h>
|
||||
#endif
|
||||
|
||||
#include <QQmlComponent>
|
||||
#include <QQmlEngine>
|
||||
@@ -272,6 +275,10 @@ int main(int argc, char *argv[])
|
||||
&& qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_STYLE")
|
||||
&& qgetenv("QT_QUICK_CONTROLS_STYLE") != "Desktop";
|
||||
|
||||
#ifdef MULTILANGUAGE_TRANSLATIONPROVIDER
|
||||
Sqlite::LibraryInitializer::initialize();
|
||||
#endif
|
||||
|
||||
if (useGuiApplication) {
|
||||
QGuiApplication application(argc, argv);
|
||||
return internalMain(&application);
|
||||
|
||||
Reference in New Issue
Block a user