Commit 47696f12 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlObserver: Fix assert on exit (Windows)

The QApplication object in main() is already destroyed when showWarnings()
is called. Create another instance in this case.

Task-number: QTCREATORBUG-2446
Reviewed-by: Thomas Hartmann
parent d880f050
......@@ -85,6 +85,9 @@ QString warnings;
void showWarnings()
if (!warnings.isEmpty()) {
int argc = 0; char **argv = 0;
QApplication application(argc, argv); // QApplication() in main has been destroyed already.
QMessageBox::warning(0, QApplication::tr("Qt QML Viewer"), warnings);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment