mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
parent
7063909cee
commit
23f80334f6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user