Skip to content
Snippets Groups Projects
Commit 740717f0 authored by Kai Koehne's avatar Kai Koehne
Browse files

Fix crash when loading a .qmlproject with a custom run configuration

Task-number: QTCREATORBUG-1609
parent 92583024
No related branches found
No related tags found
No related merge requests found
...@@ -258,7 +258,7 @@ bool QmlProject::fromMap(const QVariantMap &map) ...@@ -258,7 +258,7 @@ bool QmlProject::fromMap(const QVariantMap &map)
refresh(Everything); refresh(Everything);
// FIXME workaround to guarantee that run/debug actions are enabled if a valid file exists // FIXME workaround to guarantee that run/debug actions are enabled if a valid file exists
QmlProjectRunConfiguration *runConfig = static_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration()); QmlProjectRunConfiguration *runConfig = qobject_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration());
if (runConfig) if (runConfig)
runConfig->changeCurrentFile(0); runConfig->changeCurrentFile(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment