[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10347 - gnuradio/trunk/grc/src/platforms/gui
From: |
jblum |
Subject: |
[Commit-gnuradio] r10347 - gnuradio/trunk/grc/src/platforms/gui |
Date: |
Fri, 30 Jan 2009 14:43:55 -0700 (MST) |
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 Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10347 - gnuradio/trunk/grc/src/platforms/gui,
jblum <=