From 787fd44a917f31d52b35cf168f2821d23d8be694 Mon Sep 17 00:00:00 2001 From: Damian Jansen Date: Tue, 23 Nov 2010 12:04:23 +1000 Subject: Prevent crash when calling reload() from within a .qml Task-number: QTBUG-15493 --- tools/qml/qmlruntime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp index 78bc409..7ea77d1 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() -- cgit v0.12