forked from qt-creator/qt-creator
Show a dialog in case of mismatching build/run configurations.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "runconfiguration.h"
|
||||
#include "project.h"
|
||||
#include "persistentsettings.h"
|
||||
#include "buildconfiguration.h"
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
@@ -56,6 +57,15 @@ Project *RunConfiguration::project() const
|
||||
return m_project.data();
|
||||
}
|
||||
|
||||
bool RunConfiguration::isEnabled() const
|
||||
{
|
||||
if (!m_project)
|
||||
return false;
|
||||
if (!m_project->activeBuildConfiguration())
|
||||
return false;
|
||||
return isEnabled(m_project->activeBuildConfiguration());
|
||||
}
|
||||
|
||||
QString RunConfiguration::name() const
|
||||
{
|
||||
return m_name;
|
||||
|
||||
Reference in New Issue
Block a user