Fixed #511 - CDockWidget::toggleView now properly shows auto hide widgets

This commit is contained in:
Uwe Kindler 2023-04-28 11:47:01 +02:00
parent 1186d2b78c
commit 7a79ecab8a

View File

@ -643,14 +643,20 @@ void CDockWidget::toggleView(bool Open)
// If the dock widget state is different, then we really need to toggle
// the state. If we are in the right state, then we simply make this
// dock widget the current dock widget
auto AutoHideContainer = autoHideDockContainer();
if (d->Closed != !Open)
{
toggleViewInternal(Open);
}
else if (Open && d->DockArea)
else if (Open && d->DockArea && !AutoHideContainer)
{
raise();
}
if (Open && AutoHideContainer)
{
AutoHideContainer->collapseView(false);
}
}