diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index eaf99ad..de18b69 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -962,7 +962,9 @@ QSize CDockAreaWidget::minimumSizeHint() const void CDockAreaWidget::onDockWidgetFeaturesChanged() { if (d->TitleBar) + { d->updateTitleBarButtonStates(); + } } diff --git a/src/DockManager.cpp b/src/DockManager.cpp index bf20907..64013df 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -653,14 +653,7 @@ void CDockManager::showEvent(QShowEvent *event) for (auto FloatingWidget : d->UninitializedFloatingWidgets) { - for(CDockWidget* DockWidget : FloatingWidget->dockWidgets()) - { - if(!DockWidget->isClosed()) - { - FloatingWidget->show(); - break; - } - } + FloatingWidget->show(); } d->UninitializedFloatingWidgets.clear(); }