[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-commit
Subject: [Commit-gnuradio] r10347 - gnuradio/trunk/grc/src/platforms/gui
From: jblum () gnuradio ! org
Date: 2009-01-30 21:43:55
Message-ID: 20090130214355.0CFBD38007A () nyquist ! gnuradio ! org
[Download RAW message or body]
Author: jblum
Date: 2009-01-30 14:43:52 -0700 (Fri, 30 Jan 2009)
New Revision: 10347
Modified:
gnuradio/trunk/grc/src/platforms/gui/FlowGraph.py
Log:
bug fix, unselect on double click
Modified: gnuradio/trunk/grc/src/platforms/gui/FlowGraph.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/gui/FlowGraph.py 2009-01-30 20:32:06 UTC (rev 10346)
+++ gnuradio/trunk/grc/src/platforms/gui/FlowGraph.py 2009-01-30 21:43:52 UTC (rev 10347)
@@ -436,12 +436,12 @@
"""
selected_elements = None
if self.mouse_pressed:
- new_selection = self.what_is_selected(self.get_coordinate())
+ new_selections = self.what_is_selected(self.get_coordinate())
#update the selections if the new selection is not in the current selections
#allows us to move entire selected groups of elements
if self.get_ctrl_mask() or not (
- new_selection and new_selection[0] in self.get_selected_elements()
- ): selected_elements = new_selection
+ new_selections and new_selections[0] in self.get_selected_elements()
+ ): selected_elements = new_selections
else: #called from a mouse release
if not self.element_moved and (not self.get_selected_elements() or self.get_ctrl_mask()):
selected_elements = self.what_is_selected(self.get_coordinate(), self.press_coor)
@@ -482,6 +482,7 @@
self.set_coordinate(coordinate)
self.time = 0
self.mouse_pressed = True
+ if double_click: self.unselect()
self.update_selected_elements()
#double click detected, bring up params dialog if possible
if double_click and self.get_selected_block():
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic