This commit is contained in:
Mira Weller 2022-05-03 08:47:31 +02:00 committed by GitHub
parent 7063909cee
commit 23f80334f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,10 +858,6 @@ CDockAreaWidget* CDockManager::addDockWidgetTab(DockWidgetArea area,
{ {
return addDockWidget(ads::CenterDockWidgetArea, Dockwidget, AreaWidget); return addDockWidget(ads::CenterDockWidgetArea, Dockwidget, AreaWidget);
} }
else if (!openedDockAreas().isEmpty())
{
return addDockWidget(area, Dockwidget, openedDockAreas().last());
}
else else
{ {
return addDockWidget(area, Dockwidget, nullptr); return addDockWidget(area, Dockwidget, nullptr);