diff --git a/resip/src/main/java/fr/gouv/vitam/tools/resip/sedaobjecteditor/components/viewers/DataObjectPackageTreeViewer.java b/resip/src/main/java/fr/gouv/vitam/tools/resip/sedaobjecteditor/components/viewers/DataObjectPackageTreeViewer.java index 676dc3b6..ab83a9ec 100644 --- a/resip/src/main/java/fr/gouv/vitam/tools/resip/sedaobjecteditor/components/viewers/DataObjectPackageTreeViewer.java +++ b/resip/src/main/java/fr/gouv/vitam/tools/resip/sedaobjecteditor/components/viewers/DataObjectPackageTreeViewer.java @@ -176,8 +176,9 @@ public void keyPressed(KeyEvent e) { "Confirmation", UserInteractionDialog.WARNING_DIALOG, null) != ResipGraphicApp.OK_DIALOG)) return; + boolean confirmFlag=(tree.getSelectionPaths().length==1); for (TreePath path : tree.getSelectionPaths()) - removeSubTree(path, (tree.getSelectionPaths().length==1)); + removeSubTree(path, confirmFlag); } } }