diff options
author | jblum | 2009-01-30 21:43:52 +0000 |
---|---|---|
committer | jblum | 2009-01-30 21:43:52 +0000 |
commit | 5283cfdcd38c5f192e2c7f203a6b62cb4dfdfd00 (patch) | |
tree | d6ba81bf482091adf4b8e03386a9aa44bea725c3 /grc/src/platforms/gui | |
parent | d19334349914e06a4112e13b79ac3af0004dd9d0 (diff) | |
download | gnuradio-5283cfdcd38c5f192e2c7f203a6b62cb4dfdfd00.tar.gz gnuradio-5283cfdcd38c5f192e2c7f203a6b62cb4dfdfd00.tar.bz2 gnuradio-5283cfdcd38c5f192e2c7f203a6b62cb4dfdfd00.zip |
bug fix, unselect on double click
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10347 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/gui')
-rw-r--r-- | grc/src/platforms/gui/FlowGraph.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/grc/src/platforms/gui/FlowGraph.py b/grc/src/platforms/gui/FlowGraph.py index 22113037e..546bdf452 100644 --- a/grc/src/platforms/gui/FlowGraph.py +++ b/grc/src/platforms/gui/FlowGraph.py @@ -436,12 +436,12 @@ class FlowGraph(Element): """ 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 @@ class FlowGraph(Element): 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(): |