Skip to content
Snippets Groups Projects
Commit ff9c5976 authored by ck's avatar ck
Browse files

Maemo: Fix restoration of run configuration.

parent 6fc00ddc
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,10 @@ bool MaemoRunConfigurationFactory::canCreate(Target *parent,
bool MaemoRunConfigurationFactory::canRestore(Target *parent,
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,
......
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