Commit f4f240ad authored by Nikolai Kosjar's avatar Nikolai Kosjar

Debugger: Switch perspective when coming from another mode

Problematic case was:
 1. Run some analyzer (mode switch: edit->debug)
 2. Close project, re-open it (mode switch: debug->edit)
 3. Run analyzer from 1. again
 --> Ops, no mode switch to debug mode (and thus no analyzer view)
     because it's still the same perspective

Task-number: QTCREATORBUG-18549
Change-Id: Iccb1e0629454c1373280a55d6c41410c7161520e
Reviewed-by: default avatarhjk <>
parent f4f79a35
......@@ -3561,8 +3561,10 @@ void setPerspectiveEnabled(const QByteArray &perspectiveId, bool enabled)
void selectPerspective(const QByteArray &perspectiveId)
if (dd->m_mainWindow->currentPerspective() == perspectiveId)
if (ModeManager::currentMode() == MODE_DEBUG
&& dd->m_mainWindow->currentPerspective() == perspectiveId) {
// FIXME: Work-around aslong as the GammaRay integration does not use the same setup,
if (perspectiveId.isEmpty())
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