Skip to content

Commit 6924e69

Browse files
Fixed detaching of auto hide widgets in a floating widget
1 parent 0a6c58f commit 6924e69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DockAreaTitleBar.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,10 @@ void CDockAreaTitleBar::setAreaFloating()
684684
{
685685
// If this is the last dock area in a dock container it does not make
686686
// sense to move it to a new floating widget and leave this one
687-
// empty
688-
if (d->DockArea->dockContainer()->isFloating() && d->DockArea->dockContainer()->dockAreaCount() == 1)
687+
// empty.
688+
auto DockContainer = d->DockArea->dockContainer();
689+
if (DockContainer->isFloating() && DockContainer->dockAreaCount() == 1
690+
&& !d->DockArea->isAutoHide())
689691
{
690692
return;
691693
}

0 commit comments

Comments
 (0)