forked from qt-creator/qt-creator
Debugger: Don't reselect a perspective if it is already active
Selecting the same perspective again will not result in any visual changes, but repaint the whole window. This is unnecessary overhead. Change-Id: If41464ea023b2085482d5ab547cd9eeb91ce047f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3604,6 +3604,9 @@ void registerPerspective(const QByteArray &perspectiveId, const Perspective *per
|
||||
|
||||
void selectPerspective(const QByteArray &perspectiveId)
|
||||
{
|
||||
if (dd->m_mainWindow->currentPerspective() == perspectiveId)
|
||||
return;
|
||||
|
||||
// FIXME: Work-around aslong as the GammaRay integration does not use the same setup,
|
||||
if (perspectiveId.isEmpty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user