diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 8e2ba7e..2d4cfe2 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -749,11 +749,10 @@ void CDockWidget::toggleViewInternal(bool Open) if (d->DockArea) { d->DockArea->toggleDockWidgetView(this, Open); - } - - if (d->DockArea->isAutoHide()) - { - d->DockArea->autoHideDockContainer()->toggleView(Open); + if (d->DockArea->isAutoHide()) + { + d->DockArea->autoHideDockContainer()->toggleView(Open); + } } if (Open && TopLevelDockWidgetBefore)