- fixed unnecessary double checking
authorPatric Plitzner <p.plitzner@bgbm.org>
Tue, 27 Jan 2015 10:56:06 +0000 (10:56 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Tue, 27 Jan 2015 10:56:06 +0000 (10:56 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/DeleteHandler.java

index efde026daacd3a517dc76cf54d3a707256d20aa4..fc7a044a9bc9005f345431cea3faa3c21827a1e6 100644 (file)
@@ -73,7 +73,7 @@ public class DeleteHandler extends AbstractHandler {
                                if(object instanceof TaxonDescription){
                                        operations.add(new DeleteTaxonDescriptionOperation(label, undoContext, (TaxonDescription) object, postOperationEnabled));
                                }
-                               if(object instanceof SpecimenDescription){
+                               else if(object instanceof SpecimenDescription){
                                    operations.add(new DeleteSpecimenDescriptionOperation(label, undoContext, (SpecimenDescription) object, postOperationEnabled));
                                }
                                // DescriptionElementBase