Skip to content
Snippets Groups Projects
Commit 1d7cb01f authored by Christian Kandeler's avatar Christian Kandeler
Browse files

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
parent 4201046b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment