Show a dialog in case of mismatching build/run configurations.

This commit is contained in:
con
2009-10-28 17:21:27 +01:00
parent 4fc6a17d94
commit 6039c31133
12 changed files with 169 additions and 24 deletions

View File

@@ -76,11 +76,11 @@ QString S60EmulatorRunConfiguration::type() const
return "Qt4ProjectManager.EmulatorRunConfiguration";
}
bool S60EmulatorRunConfiguration::isEnabled() const
bool S60EmulatorRunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *configuration) const
{
Qt4Project *pro = qobject_cast<Qt4Project*>(project());
QTC_ASSERT(pro, return false);
ToolChain::ToolChainType type = pro->toolChainType(pro->activeBuildConfiguration());
ToolChain::ToolChainType type = pro->toolChainType(configuration);
return type == ToolChain::WINSCW;
}