Merge remote-tracking branch 'origin/3.6'

Change-Id: I8223551aec66539dd8c55262e5000c1621410334
This commit is contained in:
Eike Ziller
2015-12-15 12:21:49 +01:00
54 changed files with 3096 additions and 883 deletions

View File

@@ -2122,7 +2122,11 @@ void DebuggerPluginPrivate::activatePreviousMode()
{
if (ModeManager::currentMode() == ModeManager::mode(MODE_DEBUG)
&& m_previousMode.isValid()) {
ModeManager::activateMode(m_previousMode);
// 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();
}
}