Fix enabling/disabling of referencing obejcts table #5603
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 27 Apr 2016 09:59:35 +0000 (11:59 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 27 Apr 2016 09:59:35 +0000 (11:59 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java

index cc87ecc..c8a273f 100644 (file)
@@ -312,10 +312,9 @@ public class ReferencingObjectsView extends AbstractCdmViewPart {
                                } else {
                                        setContentDescription("");
                                }
-                               if(referencingObjects==null){
-                                       viewer.getControl().setEnabled(false);
-                               }
                                showViewer();
+                               //enable/disable table
+                               viewer.getControl().setEnabled(referencingObjects!=null);
                        }catch(Exception e){
                                setContentDescription("The referencing objects view could not be loaded completely. Some Problems occured.");
                        }