From 21f316577fed92545acbd2769e8cdac132fe8103 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Wed, 9 Mar 2016 08:37:20 +0100 Subject: [PATCH] Again... Fixes invisible FloatingWidget's title-widget after restoring state. --- AdvancedDockingSystem/src/ContainerWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AdvancedDockingSystem/src/ContainerWidget.cpp b/AdvancedDockingSystem/src/ContainerWidget.cpp index ac4d9b6..7f232e9 100644 --- a/AdvancedDockingSystem/src/ContainerWidget.cpp +++ b/AdvancedDockingSystem/src/ContainerWidget.cpp @@ -942,6 +942,11 @@ bool ContainerWidget::restoreFloatingWidgets(QDataStream& in, int version, QList FloatingWidget* fw = new FloatingWidget(this, sc, data.titleWidget, data.contentWidget, this); fw->restoreGeometry(geom); fw->setVisible(visible); + if (visible) + { + fw->_titleWidget->setVisible(visible); + fw->_contentWidget->setVisible(visible); + } floatings.append(fw); data.titleWidget->_fw = fw; // $mfreiholz: Don't look at it :-< It's more than ugly... }