Commit 250798ed authored by Eike Ziller's avatar Eike Ziller

Fix visibility of floating debug windows

When auto-switching the mode back to the previous mode
after debugging finishes, floating debug windows
were in a funny state, if at the same time Qt Creator
was (re-)activated as the previous application by the
window manager. Work around that by doing the switch

Task-number: QTCREATORBUG-14689
Change-Id: Iec1246854843f523b29003b1997466926ea02402
Reviewed-by: default avatarhjk <>
parent 1dbe7bde
......@@ -2115,7 +2115,11 @@ void DebuggerPluginPrivate::activatePreviousMode()
if (ModeManager::currentMode() == ModeManager::mode(MODE_DEBUG)
&& m_previousMode.isValid()) {
// If stopping the application also makes Qt Creator active (as the
// "previously active application"), doing the switch synchronously
// leads to funny effects with floating dock widgets
const Core::Id mode = m_previousMode;
QTimer::singleShot(0, this, [mode]() { ModeManager::activateMode(mode); });
m_previousMode = Id();
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