Skip to content

Commit

Permalink
Refs #10237 Expedite options dialog deallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Oct 28, 2014
1 parent 3cd1e03 commit 3af0c90
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1046,6 +1046,9 @@ namespace MantidQt
void ReflMainViewPresenter::showOptionsDialog()
{
auto options = new QtReflOptionsDialog(m_view, m_view->getPresenter());
//By default the dialog is only destroyed when ReflMainView is and so they'll stack up.
//This way, they'll be deallocated as soon as they've been closed.
options->setAttribute(Qt::WA_DeleteOnClose, true);
options->exec();
}

Expand Down

0 comments on commit 3af0c90

Please sign in to comment.