fix #11310: don't need to add a panel as a tab if it is hidden by default
This commit is contained in:
parent
03ac2082ee
commit
d3a6afeb61
|
@ -349,7 +349,7 @@ void DockWindow::loadPanels(const DockPageView* page)
|
||||||
|
|
||||||
auto addPanel = [this, page](DockPanelView* panel, Location location) {
|
auto addPanel = [this, page](DockPanelView* panel, Location location) {
|
||||||
for (DockPanelView* destinationPanel : page->panels()) {
|
for (DockPanelView* destinationPanel : page->panels()) {
|
||||||
if (destinationPanel->isTabAllowed(panel)) {
|
if (panel->isVisible() && destinationPanel->isTabAllowed(panel)) {
|
||||||
registerDock(panel);
|
registerDock(panel);
|
||||||
|
|
||||||
destinationPanel->addPanelAsTab(panel);
|
destinationPanel->addPanelAsTab(panel);
|
||||||
|
|
Loading…
Reference in a new issue