JAL-1725 broadcast empty selection (to clear selection) features/JAL-1725chimeraListener
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 6 May 2015 14:31:59 +0000 (15:31 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 6 May 2015 14:31:59 +0000 (15:31 +0100)
src/jalview/structure/StructureSelectionManager.java

index 53ed663..156fc35 100644 (file)
@@ -646,14 +646,11 @@ public class StructureSelectionManager
         }
       }
     }
-    if (!results.isEmpty())
+    for (Object li : listeners)
     {
-      for (Object li : listeners)
+      if (li instanceof SequenceListener)
       {
-        if (li instanceof SequenceListener)
-        {
-          ((SequenceListener) li).highlightSequence(results);
-        }
+        ((SequenceListener) li).highlightSequence(results);
       }
     }
   }