Commit 520108cb authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

Fix crash when restoring old .qmlproject files

The run configuration id changed, leaving restored qmlproject without
any run configuration.

Reviewed-by: kkoehne
parent fdcb1970
......@@ -37,8 +37,6 @@ const char *const PROJECTCONTEXT = "QmlProject.ProjectContext";
const char *const LANG_QML = "QML";
const char *const QMLMIMETYPE = "application/x-qmlproject";
const char *const QMLRUNCONFIGURATION = "QmlProject.QmlLocalApplicationRunConfiguration";
// contexts
const char *const C_FILESEDITOR = ".files Editor";
......@@ -33,6 +33,7 @@
#include "qmlprojectmanagerconstants.h"
#include "qmlprojectrunconfiguration.h"
#include <QtCore/QDebug>
#include <QtGui/QApplication>
#include <QtGui/QStyle>
......@@ -67,6 +68,11 @@ bool QmlProjectTarget::fromMap(const QVariantMap &map)
if (!Target::fromMap(map))
return false;
if (runConfigurations().isEmpty()) {
qWarning() << "Failed to restore run configuration of QML project!";
return false;
"QML Runtime target display name"));
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