From 23f80334f67eb445ae551f52c79f32a949bde099 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Tue, 3 May 2022 08:47:31 +0200 Subject: [PATCH] Fix issue #415 (#416) --- src/DockManager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 1e43037..ecb558c 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -858,10 +858,6 @@ CDockAreaWidget* CDockManager::addDockWidgetTab(DockWidgetArea area, { return addDockWidget(ads::CenterDockWidgetArea, Dockwidget, AreaWidget); } - else if (!openedDockAreas().isEmpty()) - { - return addDockWidget(area, Dockwidget, openedDockAreas().last()); - } else { return addDockWidget(area, Dockwidget, nullptr);