QmlDesigner: Exit puppet asynchronously in case of failed icon render

The application event loop is not yet active at setup time, so just
calling qGuiApp->quit() directly doesn't actually exit the application.

Change-Id: Iccae4dd59d92b593205c2057b189774f827ffcda
Fixes: QDS-1875
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2020-03-31 13:23:14 +03:00
parent 0880cfb75c
commit ee81b5d895

View File

@@ -150,10 +150,10 @@ void IconRenderer::setupRender()
QTimer::singleShot(1000, qGuiApp, &QGuiApplication::quit); QTimer::singleShot(1000, qGuiApp, &QGuiApplication::quit);
}); });
} else { } else {
qGuiApp->quit(); QTimer::singleShot(0, qGuiApp, &QGuiApplication::quit);
} }
} else { } else {
qGuiApp->quit(); QTimer::singleShot(0, qGuiApp, &QGuiApplication::quit);
} }
} }