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 cc87ecc42469298c1713a091a3bc51af6ccd35ba..c8a273fa6f3e3db6e394ee4e318f96a703357b82 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.");
                        }