we can avoid needing this method with the following changes - set the `Qt::WA_DeleteOnClose` attribute flag on your dialog using `QWidget::setAttribute()` and have _logDialog (in application) be a QPointer so it will be set to NULL when the dialog is deleted.