Changed toggleAutoHideArea)= logic - only the current dock widget is pinned and not all dock widgets of this area

This commit is contained in:
Uwe Kindler 2022-10-17 09:59:40 +02:00
parent e3117121cc
commit bb630ca605

View File

@ -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);
}
//============================================================================