Merge pull request #2565 from MultiMC/feature/deletion_harder
GH-2487 Make deleting instances harder
This commit is contained in:
commit
9292d846b6
@ -1634,7 +1634,8 @@ void MainWindow::on_actionDeleteInstance_triggered()
|
|||||||
tr("CAREFUL!"),
|
tr("CAREFUL!"),
|
||||||
tr("About to delete: %1\nThis is permanent and will completely delete the instance.\n\nAre you sure?").arg(m_selectedInstance->name()),
|
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::Warning,
|
||||||
QMessageBox::Yes | QMessageBox::No
|
QMessageBox::Yes | QMessageBox::No,
|
||||||
|
QMessageBox::No
|
||||||
)->exec();
|
)->exec();
|
||||||
if (response == QMessageBox::Yes)
|
if (response == QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user