From 12bb7b73e9b1a75e6ff563d939a2cf81f28c0ea4 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sun, 12 Apr 2020 00:56:41 +0200 Subject: [PATCH] Fixed CDockContainerWidget::hasTopLevelDockWidget() and CDockContainerWidget::topLevelDockArea() to work properly also for the main non floating dock container --- src/DockContainerWidget.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 6329bfd..b67aead 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1614,11 +1614,6 @@ CDockAreaWidget* CDockContainerWidget::lastAddedDockAreaWidget(DockWidgetArea ar //============================================================================ bool CDockContainerWidget::hasTopLevelDockWidget() const { - if (!isFloating()) - { - return false; - } - auto DockAreas = openedDockAreas(); if (DockAreas.count() != 1) { @@ -1652,11 +1647,6 @@ CDockWidget* CDockContainerWidget::topLevelDockWidget() const //============================================================================ CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const { - if (!isFloating()) - { - return nullptr; - } - auto DockAreas = openedDockAreas(); if (DockAreas.count() != 1) {