Make the UpdateDialog the parent to the _dialogWidget and I don't think you'll need to keep the member variable.