diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-30 19:14:26 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-31 12:01:53 +0200 |
commit | 41a91ff9d2fa60d6f186d3cf7bff94715b6bac57 (patch) | |
tree | 9005ced32e0046f5d491d69a479036dd2676a033 /src/plugins/projectexplorer | |
parent | 176115a0ad646a666bff1264a485868835f1431d (diff) |
Remove customexecutable RCs again if they are unused
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/customexecutablerunconfiguration.cpp | 4 | ||||
-rw-r--r-- | src/plugins/projectexplorer/customexecutablerunconfiguration.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index 491ff4f085..e087914cf3 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -371,6 +371,10 @@ QString CustomExecutableRunConfiguration::executable() const return exec; } +bool CustomExecutableRunConfiguration::isConfigured() const +{ + return !m_executable.isEmpty(); +} LocalApplicationRunConfiguration::RunMode CustomExecutableRunConfiguration::runMode() const { diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.h b/src/plugins/projectexplorer/customexecutablerunconfiguration.h index 9e056a981b..c591a1e9ea 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.h +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.h @@ -76,6 +76,10 @@ public: */ QString executable() const; + /** Returns whether this runconfiguration ever was configured with a executable + */ + bool isConfigured() const; + /** * Returns only what is stored in the internal variable, not what we might * get after extending it with a path or asking the user. This value is |