Skip to content
Snippets Groups Projects
Commit b979d9f1 authored by dt's avatar dt
Browse files

Qt4ProjectManager: correctly set parse state on restoring

parent 0a5202d2
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,8 @@ bool MaemoRunConfiguration::fromMap(const QVariantMap &map)
SystemEnvironmentBase).toInt());
m_remoteMounts->fromMap(map);
m_validParse = qt4Target()->qt4Project()->validParse(m_proFilePath);
setDefaultDisplayName(defaultDisplayName());
return true;
......
......@@ -237,6 +237,9 @@ bool S60DeviceRunConfiguration::fromMap(const QVariantMap &map)
return false;
if (!QFileInfo(m_proFilePath).exists())
return false;
m_validParse = qt4Target()->qt4Project()->validParse(m_proFilePath);
setDefaultDisplayName(tr("%1 on Symbian Device").arg(QFileInfo(m_proFilePath).completeBaseName()));
return RunConfiguration::fromMap(map);
......
......@@ -179,6 +179,9 @@ bool S60EmulatorRunConfiguration::fromMap(const QVariantMap &map)
if (m_proFilePath.isEmpty())
return false;
m_validParse = qt4Target()->qt4Project()->validParse(m_proFilePath);
//: S60 emulator run configuration default display name, %1 is base pro-File name
setDefaultDisplayName(tr("%1 in Symbian Emulator").arg(QFileInfo(m_proFilePath).completeBaseName()));
......
......@@ -527,6 +527,8 @@ bool Qt4RunConfiguration::fromMap(const QVariantMap &map)
m_userEnvironmentChanges = Utils::EnvironmentItem::fromStringList(map.value(QLatin1String(USER_ENVIRONMENT_CHANGES_KEY)).toStringList());
m_baseEnvironmentBase = static_cast<BaseEnvironmentBase>(map.value(QLatin1String(BASE_ENVIRONMENT_BASE_KEY), static_cast<int>(Qt4RunConfiguration::BuildEnvironmentBase)).toInt());
m_parseSuccess = qt4Target()->qt4Project()->validParse(m_proFilePath);
return RunConfiguration::fromMap(map);
}
......
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