minor fix so deleted elements are not referenced in the selected ports
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 25 Jun 2009 17:36:36 +0000 (17:36 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 25 Jun 2009 17:36:36 +0000 (17:36 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11282 221aa14e-8319-0410-a670-987f0aec2ac5

grc/gui/FlowGraph.py

index 26544faab56ce9cebd6430911ca6dfe72d68c6ae..63f2890279265f741c77326f97f94b0eab47409f 100644 (file)
@@ -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)