commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11282 - gnuradio/trunk/grc/gui


From: jblum
Subject: [Commit-gnuradio] r11282 - gnuradio/trunk/grc/gui
Date: Thu, 25 Jun 2009 11:36:36 -0600 (MDT)

Author: jblum
Date: 2009-06-25 11:36:36 -0600 (Thu, 25 Jun 2009)
New Revision: 11282

Modified:
   gnuradio/trunk/grc/gui/FlowGraph.py
Log:
minor fix so deleted elements are not referenced in the selected ports

Modified: gnuradio/trunk/grc/gui/FlowGraph.py
===================================================================
--- gnuradio/trunk/grc/gui/FlowGraph.py 2009-06-25 04:27:04 UTC (rev 11281)
+++ gnuradio/trunk/grc/gui/FlowGraph.py 2009-06-25 17:36:36 UTC (rev 11282)
@@ -281,6 +281,10 @@
                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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]