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);