forked from qt-creator/qt-creator
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: hjk <hjk@qt.io>
This commit is contained in:
@@ -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) {
|
||||
return;
|
||||
}
|
||||
|
||||
// FIXME: Work-around aslong as the GammaRay integration does not use the same setup,
|
||||
if (perspectiveId.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user