It appears that the QMdiSubWindow's 'Qt::WA_DeleteOnClose' attribute is not having any effect anymore when the application's style sheet was changed. This leaves us with dangling sub windows after the main windows were closed. In order to make sure these sub windows are closed anyways, the sub windows are now explicitly deleted in 'RiuMainWindowBase::removeViewerFromMdiArea'.

This commit is contained in:
Ruben Manuel Thoms 2020-09-21 14:40:42 +02:00 committed by Gaute Lindkvist
parent fac3055c47
commit effc0d4c73

View File

@ -293,6 +293,8 @@ void RiuMainWindowBase::removeViewerFromMdiArea( QMdiArea* mdiArea, QWidget* vie
}
mdiArea->removeSubWindow( subWindowBeingClosed );
delete subWindowBeingClosed;
QList<QMdiSubWindow*> subWindowList = mdiArea->subWindowList( QMdiArea::ActivationHistoryOrder );
if ( !subWindowList.empty() )
{