Gui: fixes #10807: By default keep the old tabulated layout of ComboView and TaskView

This commit is contained in:
wmayer
2023-09-28 17:32:01 +02:00
committed by 0penBrain
parent 5dfd4d5190
commit 0398716487
5 changed files with 26 additions and 11 deletions

View File

@@ -380,6 +380,20 @@ void DockWindowManager::setup(DockWindowItems* items)
}
}
// Don't always tabify after switching the workbench
static bool tabify = false;
if (!tabify) {
// tabify dock widgets for which "tabbed" is true and which have the same position
for (int i=0; i<4; i++) {
const QList<QDockWidget*>& dws = areas[i];
for (QList<QDockWidget*>::ConstIterator it = dws.begin(); it != dws.end(); ++it) {
if (*it != dws.front()) {
getMainWindow()->tabifyDockWidget(dws.front(), *it);
tabify = true;
}
}
}
}
}
void DockWindowManager::saveState()