diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 3fb36e2..71d17a1 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1534,7 +1534,7 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer( { if (d->DockManager != DockWidget->dockManager()) { - DockWidget->setDockManager(d->DockManager); // Overlay Dock Container needs a valid dock manager + DockWidget->setDockManager(d->DockManager); // Auto hide Dock Container needs a valid dock manager } if (!CDockManager::testConfigFlag(CDockManager::AutoHideFeatureEnabled)) { @@ -1547,11 +1547,10 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer( sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget()); DockWidget->sideTabWidget()->show(); - auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this); + const auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this); AutoHideContainer->hide(); d->DockManager->dockFocusController()->clearDockWidgetFocus(DockWidget); - //auto AutoHideContainer = sideTabBar(area)->insertDockWidget(insertOrder == CDockWidget::First ? 0 : -1, DockWidget); return AutoHideContainer; }