diff options
-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); + } } } |