From bb630ca605f3b26aabd274f71b7a2074dcc7edca Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 17 Oct 2022 09:59:40 +0200 Subject: [PATCH] Changed toggleAutoHideArea)= logic - only the current dock widget is pinned and not all dock widgets of this area --- src/DockAreaWidget.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 3e79343..866833a 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -1100,15 +1100,12 @@ void CDockAreaWidget::closeArea() void CDockAreaWidget::toggleAutoHideArea(bool Enable) { const auto area = dockContainer()->getDockAreaPosition(this); - for (const auto DockWidget : openedDockWidgets()) + const auto DockWidget = currentDockWidget(); + if (Enable == isAutoHide()) { - if (Enable == isAutoHide()) - { - continue; - } - - onAutoHideToggleRequested(DockWidget, !isAutoHide(), area); + return; } + onAutoHideToggleRequested(DockWidget, !isAutoHide(), area); } //============================================================================