call CDockWidget::closeDockWidgetInternal when close attempt and CustomCloseHandling (#438)

Co-authored-by: bjb-work <N/A>
This commit is contained in:
bjb-work
2022-07-15 08:47:20 -04:00
committed by GitHub
parent 75d58b3ea3
commit df74686287
2 changed files with 9 additions and 5 deletions

View File

@@ -809,7 +809,7 @@ void CFloatingDockContainer::closeEvent(QCloseEvent *event)
for (auto DockWidget : d->DockContainer->openedDockWidgets())
{
if (DockWidget->features().testFlag(CDockWidget::DockWidgetDeleteOnClose))
if (DockWidget->features().testFlag(CDockWidget::DockWidgetDeleteOnClose) || DockWidget->features().testFlag(CDockWidget::CustomCloseHandling))
{
DockWidget->closeDockWidgetInternal();
}