summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-22 01:56:28 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-22 01:56:28 (GMT)
commit6c65d5af83fb2a8c6fbd33c0d00723234cfc9f03 (patch)
treef8d5def180b39ce17aaed17b980c9af633397afc /tools
parent9828be6deada6f6f12a822f7cdfd03f19ef57387 (diff)
downloadQt-6c65d5af83fb2a8c6fbd33c0d00723234cfc9f03.zip
Qt-6c65d5af83fb2a8c6fbd33c0d00723234cfc9f03.tar.gz
Qt-6c65d5af83fb2a8c6fbd33c0d00723234cfc9f03.tar.bz2
Fix loading QML via file open dialog
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index 07b68ea..95dfd16 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -606,10 +606,8 @@ void QmlViewer::reload()
void QmlViewer::open()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open QML file"), currentFileName, tr("QML Files (*.qml)"));
- if (!fileName.isEmpty()) {
+ if (!fileName.isEmpty())
openQml(fileName);
- QTimer::singleShot(0, this, SLOT(reload()));
- }
}
void QmlViewer::executeErrors()