diff options
author | janrupf <werbung.janrupf@t-online.de> | 2018-11-08 17:30:30 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-12 01:48:53 +0100 |
commit | 3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0 (patch) | |
tree | 2ecbf2fa2f5ca0a5780bd69c271ef6ec60db8fc7 /application/MainWindow.cpp | |
parent | 51a68837378cd871c6a8acef4dd52c9d9f86660c (diff) | |
download | MultiMC-3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0.tar MultiMC-3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0.tar.gz MultiMC-3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0.tar.lz MultiMC-3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0.tar.xz MultiMC-3d630c7856ce73ab2f26a80d3fc4f2c69f3440b0.zip |
GH-2452 Ask before deleting group
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 20482ce4..2b6d0c0e 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1478,7 +1478,12 @@ void MainWindow::deleteGroup() QString groupName = map["group"].toString(); if(!groupName.isEmpty()) { - MMC->instances()->deleteGroup(groupName); + auto reply = QMessageBox::question(this, tr("Delete group"), tr("Are you sure you want to delete the group %1") + .arg(groupName), QMessageBox::Yes | QMessageBox::No); + if(reply == QMessageBox::Yes) + { + MMC->instances()->deleteGroup(groupName); + } } } |