forked from qt-creator/qt-creator
ProjectExplorer: Inline RunConfiguration::isActive
... into the only internal caller. The use there is dubious to some degree. Change-Id: Icfa7437b3fdaa4dbd73fe9965a88abf4700cd3e0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -204,11 +204,6 @@ RunConfiguration::RunConfiguration(Target *target, Core::Id id)
|
||||
|
||||
RunConfiguration::~RunConfiguration() = default;
|
||||
|
||||
bool RunConfiguration::isActive() const
|
||||
{
|
||||
return target()->isActive() && target()->activeRunConfiguration() == this;
|
||||
}
|
||||
|
||||
QString RunConfiguration::disabledReason() const
|
||||
{
|
||||
BuildSystem *bs = activeBuildSystem();
|
||||
@@ -305,7 +300,9 @@ void RunConfiguration::update()
|
||||
|
||||
emit enabledChanged();
|
||||
|
||||
if (isActive() && project() == SessionManager::startupProject())
|
||||
const bool isActive = target()->isActive() && target()->activeRunConfiguration() == this;
|
||||
|
||||
if (isActive && project() == SessionManager::startupProject())
|
||||
emit ProjectExplorerPlugin::instance()->updateRunActions();
|
||||
}
|
||||
|
||||
|
@@ -127,8 +127,6 @@ class PROJECTEXPLORER_EXPORT RunConfiguration : public ProjectConfiguration
|
||||
public:
|
||||
~RunConfiguration() override;
|
||||
|
||||
bool isActive() const;
|
||||
|
||||
virtual QString disabledReason() const;
|
||||
virtual bool isEnabled() const;
|
||||
|
||||
|
Reference in New Issue
Block a user