Commit 6e6cf1a0 authored by Marco Descher's avatar Marco Descher 🏔

[17257] LabResultOrderDeleteAction: ask for confirmation for each pair

parent d1adf518
Pipeline #12194 passed with stages
in 4 minutes and 47 seconds
......@@ -37,9 +37,7 @@ public class LaborResultOrderDeleteAction extends Action implements IAction {
@Override
public void run(){
boolean askForConfirmation = selectedOrdersOrResults.size() == 1;
for (Object object : selectedOrdersOrResults) {
LabResult result;
......@@ -60,12 +58,9 @@ public class LaborResultOrderDeleteAction extends Action implements IAction {
+ object.getClass());
}
boolean delete = true;
if (askForConfirmation) {
delete = MessageDialog.openConfirm(shell, "Resultat/Verordnung entfernen",
"Soll das Resultat [" + result
+ "] sowie die zugeh. Verordnung wirklich entfernt werden?");
}
boolean delete = MessageDialog.openConfirm(shell, "Resultat/Verordnung entfernen",
"Soll das Resultat [" + result
+ "] sowie die zugeh. Verordnung wirklich entfernt werden?");
if (delete) {
AcquireLockBlockingUi.aquireAndRun(result, new ILockHandler() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment