GH-2452 Ask before deleting group
This commit is contained in:
parent
51a6883737
commit
3d630c7856
@ -1477,9 +1477,14 @@ void MainWindow::deleteGroup()
|
|||||||
return;
|
return;
|
||||||
QString groupName = map["group"].toString();
|
QString groupName = map["group"].toString();
|
||||||
if(!groupName.isEmpty())
|
if(!groupName.isEmpty())
|
||||||
|
{
|
||||||
|
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);
|
MMC->instances()->deleteGroup(groupName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionViewInstanceFolder_triggered()
|
void MainWindow::on_actionViewInstanceFolder_triggered()
|
||||||
|
Loading…
Reference in New Issue
Block a user