Skip to content

Commit 7a79eca

Browse files
Fixed #511 - CDockWidget::toggleView now properly shows auto hide widgets
1 parent 1186d2b commit 7a79eca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/DockWidget.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,14 +643,20 @@ void CDockWidget::toggleView(bool Open)
643643
// If the dock widget state is different, then we really need to toggle
644644
// the state. If we are in the right state, then we simply make this
645645
// dock widget the current dock widget
646+
auto AutoHideContainer = autoHideDockContainer();
646647
if (d->Closed != !Open)
647648
{
648649
toggleViewInternal(Open);
649650
}
650-
else if (Open && d->DockArea)
651+
else if (Open && d->DockArea && !AutoHideContainer)
651652
{
652653
raise();
653654
}
655+
656+
if (Open && AutoHideContainer)
657+
{
658+
AutoHideContainer->collapseView(false);
659+
}
654660
}
655661

656662

0 commit comments

Comments
 (0)