diff options
author | mae <qt-info@nokia.com> | 2010-03-12 14:31:42 +0100 |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-03-12 14:31:42 +0100 |
commit | c6d79d0457c3debbde81e19b921363d120907e1d (patch) | |
tree | d817b4a810211a2da48badd5684d0480ff0ba63f /src/plugins/coreplugin/fancyactionbar.cpp | |
parent | d61a7f59b298a55abbffbcb59e892ae36b831b33 (diff) | |
download | qt-creator-c6d79d0457c3debbde81e19b921363d120907e1d.tar.gz |
Do not rely on Qt's smartness for flicker avoidance
Diffstat (limited to 'src/plugins/coreplugin/fancyactionbar.cpp')
-rw-r--r-- | src/plugins/coreplugin/fancyactionbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp index 6346a84d8c..8dc6a520aa 100644 --- a/src/plugins/coreplugin/fancyactionbar.cpp +++ b/src/plugins/coreplugin/fancyactionbar.cpp @@ -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); } } |