aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-03-30 19:14:26 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-03-31 12:01:53 +0200
commit41a91ff9d2fa60d6f186d3cf7bff94715b6bac57 (patch)
tree9005ced32e0046f5d491d69a479036dd2676a033 /src/plugins/projectexplorer
parent176115a0ad646a666bff1264a485868835f1431d (diff)
Remove customexecutable RCs again if they are unused
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp4
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.h4
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