Commit ff9c5976 authored by ck's avatar ck
Browse files

Maemo: Fix restoration of run configuration.

parent 6fc00ddc
...@@ -81,7 +81,10 @@ bool MaemoRunConfigurationFactory::canCreate(Target *parent, ...@@ -81,7 +81,10 @@ bool MaemoRunConfigurationFactory::canCreate(Target *parent,
bool MaemoRunConfigurationFactory::canRestore(Target *parent, bool MaemoRunConfigurationFactory::canRestore(Target *parent,
const QVariantMap &map) const const QVariantMap &map) const
{ {
return canCreate(parent, ProjectExplorer::idFromMap(map)); if (!qobject_cast<Qt4Target *>(parent))
return false;
return ProjectExplorer::idFromMap(map)
.startsWith(QLatin1String(MAEMO_RC_ID));
} }
bool MaemoRunConfigurationFactory::canClone(Target *parent, bool MaemoRunConfigurationFactory::canClone(Target *parent,
......
Markdown is supported
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