diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-22 01:56:28 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-22 01:56:28 (GMT) |
commit | 6c65d5af83fb2a8c6fbd33c0d00723234cfc9f03 (patch) | |
tree | f8d5def180b39ce17aaed17b980c9af633397afc /tools | |
parent | 9828be6deada6f6f12a822f7cdfd03f19ef57387 (diff) | |
download | Qt-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.cpp | 4 |
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() |