Merge pull request #2565 from MultiMC/feature/deletion_harder

GH-2487 Make deleting instances harder
This commit is contained in:
Petr Mrázek 2019-03-23 14:23:45 +01:00 committed by GitHub
commit 9292d846b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1634,7 +1634,8 @@ void MainWindow::on_actionDeleteInstance_triggered()
tr("CAREFUL!"),
tr("About to delete: %1\nThis is permanent and will completely delete the instance.\n\nAre you sure?").arg(m_selectedInstance->name()),
QMessageBox::Warning,
QMessageBox::Yes | QMessageBox::No
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No
)->exec();
if (response == QMessageBox::Yes)
{