Commit c6d79d04 authored by mae's avatar mae
Browse files

Do not rely on Qt's smartness for flicker avoidance

parent d61a7f59
......@@ -269,8 +269,10 @@ void FancyActionBar::modeChanged(Core::IMode *mode)
{
if (m_runButton && m_debugButton) {
bool inDebugMode = (mode->id() == QLatin1String("Debugger.Mode.Debug"));
layout()->setEnabled(false);
m_runButton->setVisible(!inDebugMode);
m_debugButton->setVisible(inDebugMode);
layout()->setEnabled(true);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment