Skip to content

Commit

Permalink
GH-2452 Ask before deleting group
Browse files Browse the repository at this point in the history
  • Loading branch information
Janrupf authored and peterix committed Nov 12, 2018
1 parent 51a6883 commit 3d630c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 3d630c7

Please sign in to comment.