aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2010-11-11 16:27:54 +0100
committerChristian Kandeler <christian.kandeler@nokia.com>2010-11-11 16:27:54 +0100
commit1d7cb01f64ef83aa397c4f773d415081ae850b53 (patch)
treeae2ca67d6f5cb68dea72ffa9e2122d6a4f8cd669
parent4201046b9be1f683d3805e3a91651b8f23d0cd25 (diff)
Don't allow to re-run debugger run controls.
They don't support that currently, so we should not offer it. Quick fix for 2.1 release. Debuggers should be fixed instead. Reviewed-by: dt
-rw-r--r--src/plugins/projectexplorer/outputwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp
index 5384ee5ccb7..35ddb901337 100644
--- a/src/plugins/projectexplorer/outputwindow.cpp
+++ b/src/plugins/projectexplorer/outputwindow.cpp
@@ -393,7 +393,7 @@ void OutputPane::tabChanged(int i)
RunControl *rc = m_runControlTabs.at(index).runControl;
m_stopAction->setEnabled(rc->isRunning());
- m_reRunButton->setEnabled(!rc->isRunning());
+ m_reRunButton->setEnabled(!rc->isRunning() && rc->runMode() == Constants::RUNMODE);
m_reRunButton->setIcon(rc->runMode() == Constants::DEBUGMODE ? m_debugIcon : m_runIcon);
}
}
@@ -423,7 +423,7 @@ void OutputPane::runControlFinished()
<< " current " << current << m_runControlTabs.size();
if (current && current == sender()) {
- m_reRunButton->setEnabled(true);
+ m_reRunButton->setEnabled(current->runMode() == Constants::RUNMODE);
m_stopAction->setEnabled(false);
m_reRunButton->setIcon(current->runMode() == Constants::DEBUGMODE ? m_debugIcon : m_runIcon);
}