forked from qt-creator/qt-creator
Debugger: Avoid a bogus warning
op.dock can legitimately be valid for 'Raise' operations. Change-Id: Ic59dbf102302bb3f38da56fb0e8d46f18e26cf8b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1001,6 +1001,7 @@ void PerspectivePrivate::saveLayout()
|
||||
PerspectiveState state;
|
||||
state.mainWindowState = theMainWindow->saveState();
|
||||
for (DockOperation &op : m_dockOperations) {
|
||||
if (op.operationType != Perspective::Raise) {
|
||||
QTC_ASSERT(op.dock, continue);
|
||||
for (QTreeView *tv : op.dock->findChildren<QTreeView *>()) {
|
||||
if (tv->property(PerspectiveState::savesHeaderKey()).toBool()) {
|
||||
@@ -1009,6 +1010,7 @@ void PerspectivePrivate::saveLayout()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
theMainWindow->d->m_lastPerspectiveStates.insert(m_id, state);
|
||||
theMainWindow->d->m_lastTypePerspectiveStates.insert(settingsId(), state);
|
||||
}
|
||||
|
Reference in New Issue
Block a user