From cb18bc0d91edac5266b1a0fcba0f422f2539dffc Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 7 May 2020 16:13:59 +0200 Subject: [PATCH] Fixed visibility issue when adding dock widget after all other dock widgets have ben closed in the GUI - fix for GitHub issue #148 --- src/DockContainerWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index b67aead..91035dd 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1034,6 +1034,10 @@ void DockContainerWidgetPrivate::addDockArea(CDockAreaWidget* NewDockArea, DockW if (Splitter->orientation() == InsertParam.orientation()) { insertWidgetIntoSplitter(Splitter, NewDockArea, InsertParam.append()); + if (Splitter->isHidden()) + { + Splitter->show(); + } } else {