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

@@ -93,12 +93,12 @@ QString Qt4RunConfiguration::type() const
return "Qt4ProjectManager.Qt4RunConfiguration";
}
bool Qt4RunConfiguration::isEnabled() const
bool Qt4RunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *configuration) const
{
#ifdef QTCREATOR_WITH_S60
Qt4Project *pro = qobject_cast<Qt4Project*>(project());
QTC_ASSERT(pro, return false);
ProjectExplorer::ToolChain::ToolChainType type = pro->toolChainType(pro->activeBuildConfiguration());
ProjectExplorer::ToolChain::ToolChainType type = pro->toolChainType(configuration);
return type != ProjectExplorer::ToolChain::WINSCW
&& type != ProjectExplorer::ToolChain::GCCE
&& type != ProjectExplorer::ToolChain::RVCT_ARMV5