forked from qt-creator/qt-creator
Debugger: Only hide, not destroy toolbars when switching perspectives
May save a few cycles for re-creation and re-layouting flicker when switching back. Change-Id: Ifc29adb008d2fa0966f68fe45b3258e6dd199d08 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -510,7 +510,7 @@ void DebuggerMainWindowPrivate::depopulateCurrentPerspective()
|
||||
QWidget *central = m_currentPerspective->centralWidget();
|
||||
m_centralWidgetStack->removeWidget(central ? central : m_editorPlaceHolder);
|
||||
|
||||
m_currentPerspective->d->destroyToolBar();
|
||||
m_currentPerspective->d->hideToolBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user