Please sign in to comment.
Qt/MainWindow: Directly delete unparented dialogs
Calling deleteLater in MainWindow's destructor doesn't work, as the event loop will stop before it gets around to deleting these dialogs. Seeing as this is a QObject destructor, we should already be on the event loop anyways, so simply using delete should be safe.
- Loading branch information...