forked from qt-creator/qt-creator
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: hjk <hjk@qt.io>
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user