You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If there is only one single dock widget and this widget has the
886
886
// DeleteOnClose feature, then we delete the dock widget now
887
887
auto OpenDockWidgets = openedDockWidgets();
888
-
if (OpenDockWidgets.count() == 1 && OpenDockWidgets[0]->features().testFlag(CDockWidget::DockWidgetDeleteOnClose))
888
+
if (OpenDockWidgets.count() == 1 && OpenDockWidgets[0]->features().testFlag(CDockWidget::DockWidgetDeleteOnClose))
889
889
{
890
890
OpenDockWidgets[0]->closeDockWidgetInternal();
891
891
}
892
-
else
892
+
else
893
893
{
894
-
for (auto DockWidget : openedDockWidgets())
895
-
{
896
-
DockWidget->toggleView(false);
897
-
}
898
-
}
894
+
for (auto DockWidget : openedDockWidgets())
895
+
{
896
+
if (DockWidget->features().testFlag(CDockWidget::DockWidgetDeleteOnClose) && DockWidget->features().testFlag(CDockWidget::DockWidgetForceCloseWithArea))
0 commit comments