forked from qt-creator/qt-creator
qmlpuppet: fix crash
initializeView(); creates the necessary engine where we need to set the languageUi. Change-Id: Ib9f9f35e00167ce0bfe4d96ed4e66a965daea084 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -322,8 +322,8 @@ void NodeInstanceServer::stopRenderTimer()
|
|||||||
|
|
||||||
void NodeInstanceServer::createScene(const CreateSceneCommand &command)
|
void NodeInstanceServer::createScene(const CreateSceneCommand &command)
|
||||||
{
|
{
|
||||||
setTranslationLanguage(command.language);
|
|
||||||
initializeView();
|
initializeView();
|
||||||
|
setTranslationLanguage(command.language);
|
||||||
|
|
||||||
Internal::QmlPrivateGate::stopUnifiedTimer();
|
Internal::QmlPrivateGate::stopUnifiedTimer();
|
||||||
|
|
||||||
|
@@ -46,8 +46,8 @@ Qt5PreviewNodeInstanceServer::Qt5PreviewNodeInstanceServer(NodeInstanceClientInt
|
|||||||
|
|
||||||
void Qt5PreviewNodeInstanceServer::createScene(const CreateSceneCommand &command)
|
void Qt5PreviewNodeInstanceServer::createScene(const CreateSceneCommand &command)
|
||||||
{
|
{
|
||||||
setTranslationLanguage(command.language);
|
|
||||||
initializeView();
|
initializeView();
|
||||||
|
setTranslationLanguage(command.language);
|
||||||
setupScene(command);
|
setupScene(command);
|
||||||
startRenderTimer();
|
startRenderTimer();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user