summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer/main.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-15 15:17:12 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-15 15:17:12 (GMT)
commit1312c0ca987b008d43558ff4cfa69b8dfd11616e (patch)
tree6250dfa07d147801aa7d16474e87778946b36386 /tools/qmlviewer/main.cpp
parentd05892248dfc4f06e27d61aa4d485d1dd983992f (diff)
downloadQt-1312c0ca987b008d43558ff4cfa69b8dfd11616e.zip
Qt-1312c0ca987b008d43558ff4cfa69b8dfd11616e.tar.gz
Qt-1312c0ca987b008d43558ff4cfa69b8dfd11616e.tar.bz2
Fix a assert failure on windows
When creating a file dialog, you need to show its parent prior to invoking that dialog.
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r--tools/qmlviewer/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp
index ed700a0..5c75656 100644
--- a/tools/qmlviewer/main.cpp
+++ b/tools/qmlviewer/main.cpp
@@ -154,11 +154,11 @@ int main(int argc, char ** argv)
viewer.setDeviceKeys(true);
viewer.setRecordDither(dither);
viewer.setRecordArgs(recordargs);
+ viewer.show();
if (!fileName.isEmpty())
viewer.openQml(fileName);
else
viewer.open();
- viewer.show();
return app.exec();
}