From ac311d6d450dab89499bc87cca9b2dc2efa11f2a Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Tue, 13 Sep 2022 17:26:00 +0800 Subject: [PATCH] Fix moving content to parent on toggle view --- src/DockWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index f633e27..a828dc8 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -195,7 +195,7 @@ void DockWidgetPrivate::showDockWidget() } // If this widget is pinned and there are no opened dock widgets, unpin the overlay widget by moving it's contents to parent container - if (Container->openedDockWidgets().count() == 0 && DockArea->isOverlayed()) + if (Container->openedDockWidgets().count() == 0 && DockArea->isOverlayed() && !DockManager->isRestoringState()) { DockArea->overlayDockContainer()->moveContentsToParent(); }