fix #11310: don't need to add a panel as a tab if it is hidden by default

This commit is contained in:
Roman Pudashkin 2022-04-26 22:22:49 +02:00
parent 03ac2082ee
commit d3a6afeb61

View file

@ -349,7 +349,7 @@ void DockWindow::loadPanels(const DockPageView* page)
auto addPanel = [this, page](DockPanelView* panel, Location location) {
for (DockPanelView* destinationPanel : page->panels()) {
if (destinationPanel->isTabAllowed(panel)) {
if (panel->isVisible() && destinationPanel->isTabAllowed(panel)) {
registerDock(panel);
destinationPanel->addPanelAsTab(panel);