Commit 6949453c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlProjectManager: crash fix

parent 5a7858f5
......@@ -258,7 +258,8 @@ bool QmlProject::fromMap(const QVariantMap &map)
refresh(Everything);
// FIXME workaround to guarantee that run/debug actions are enabled if a valid file exists
QmlProjectRunConfiguration *runConfig = static_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration());
runConfig->changeCurrentFile(0);
if (runConfig)
runConfig->changeCurrentFile(0);
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment