ref #7806 Do not set dirty flag when voc selection was canceled
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 26 Oct 2018 06:24:53 +0000 (08:24 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 26 Oct 2018 06:24:53 +0000 (08:24 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureNodeDropAdapter.java

index 3e99919fec66299776945b58adf660c65214168d..d7aab8683e0535e0d3e432adb0db56c078540fec 100644 (file)
@@ -33,7 +33,6 @@ import eu.etaxonomy.taxeditor.l10n.Messages;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.TermVocabularySelectionDialog;
-import eu.etaxonomy.taxeditor.view.webimport.termimport.parser.ParserUtil;
 import eu.etaxonomy.taxeditor.view.webimport.termimport.wrapper.OntologyTermWrapper;
 
 public class FeatureNodeDropAdapter extends ViewerDropAdapter {
@@ -120,11 +119,10 @@ public class FeatureNodeDropAdapter extends ViewerDropAdapter {
                                return false;
                            }
                        }
-                       if(vocabulary!=null){
-                           if(wrapper.getDescription()==null && MessagingUtils.confirmDialog("Load Details?", "Not all details for this term have been loaded yet.\n"
-                                   + "Do you want to load the details before adding it?")){
-                               ParserUtil.loadDetails(wrapper);
-                           }
+                       if(vocabulary==null){
+                           return false;
+                       }
+                       else{
                            Feature feature = Feature.NewInstance(wrapper.getDescription(), wrapper.getLabel(), null);
                            feature.setUri(URI.create(wrapper.getUri()));
                            vocabulary.addTerm(feature);