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:
Ulf Hermann
2016-08-23 09:35:02 +02:00
parent 3332d42313
commit 8951394704

View File

@@ -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;