summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorDamian Jansen <damian.jansen@nokia.com>2010-11-23 12:04:23 +1000
committerDamian Jansen <damian.jansen@nokia.com>2010-11-23 12:04:23 +1000
commit787fd44a917f31d52b35cf168f2821d23d8be694 (patch)
tree11f4cce92d4ba82483ccdb9e0862f47b950d2c74 /tools/qml
parente158714ea545bd74600f121ab726cf2cf848f3b9 (diff)
Prevent crash when calling reload() from within a .qml
Task-number: QTBUG-15493
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/qmlruntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index 78bc409785..7ea77d1613 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -1012,7 +1012,7 @@ void QDeclarativeViewer::addPluginPath(const QString& plugin)
void QDeclarativeViewer::reload()
{
- open(currentFileOrUrl);
+ launch(currentFileOrUrl);
}
void QDeclarativeViewer::openFile()