From: gmungoc Date: Wed, 6 May 2015 14:31:59 +0000 (+0100) Subject: JAL-1725 broadcast empty selection (to clear selection) X-Git-Tag: Jalview_2_9~30 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bb82c9968358436e350e1ba03700ca4a16663161;p=jalview.git JAL-1725 broadcast empty selection (to clear selection) --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 53ed663..156fc35 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -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); } } }