From 1ba5d960c06e5b511d950cf4e7978055125af779 Mon Sep 17 00:00:00 2001 From: Patrick Plitzner Date: Wed, 27 Apr 2016 11:59:35 +0200 Subject: [PATCH] Fix enabling/disabling of referencing obejcts table #5603 --- .../referencingobjects/ReferencingObjectsView.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java index cc87ecc42..c8a273fa6 100644 --- a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java +++ b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java @@ -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."); } -- 2.34.1