From 5283cfdcd38c5f192e2c7f203a6b62cb4dfdfd00 Mon Sep 17 00:00:00 2001 From: jblum Date: Fri, 30 Jan 2009 21:43:52 +0000 Subject: bug fix, unselect on double click git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10347 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/platforms/gui/FlowGraph.py | 7 ++++--- 1 file 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(): -- cgit