Merge pull request #7715 from Techjar/qt-delete-unparented Qt/MainWindow: Directly delete unparented dialogs