From: jblum Date: Thu, 25 Jun 2009 17:36:36 +0000 (+0000) Subject: minor fix so deleted elements are not referenced in the selected ports X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=636a8cae9b5fd9cdc1e45f7a630068b905713057;p=debian%2Fgnuradio minor fix so deleted elements are not referenced in the selected ports git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11282 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index 26544faa..63f28902 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -281,6 +281,10 @@ class FlowGraph(Element): for selected in selected_elements: if selected in elements: continue selected_elements.remove(selected) + if self._old_selected_port not in elements: + self._old_selected_port = None + if self._new_selected_port not in elements: + self._new_selected_port = None #update highlighting for element in elements: element.set_highlighted(element in selected_elements)