Commit e1ff09f3 authored by Filipe Azevedo's avatar Filipe Azevedo

Fix memory leak

This is not really a leak because they are owned by the main window.
But they accumulate in memory for nothing.

Change-Id: I521f3c9e3e535cd22ae27c974257866d1d6403b7
Reviewed-by: default avatarhjk <hjk@qt.io>
parent e2bacb1d
......@@ -3426,6 +3426,7 @@ static BuildConfiguration::BuildType startupBuildType()
void showCannotStartDialog(const QString &text)
{
QMessageBox *errorDialog = new QMessageBox(ICore::mainWindow());
errorDialog->setAttribute(Qt::WA_DeleteOnClose);
errorDialog->setIcon(QMessageBox::Warning);
errorDialog->setWindowTitle(text);
errorDialog->setText(DebuggerPlugin::tr("Cannot start %1 without a project. Please open the project "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment