Skip to content
Snippets Groups Projects
Commit c6d79d04 authored by mae's avatar mae
Browse files

Do not rely on Qt's smartness for flicker avoidance

parent d61a7f59
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
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