summaryrefslogtreecommitdiff
path: root/grc/gui/canvas/flowgraph.py
diff options
context:
space:
mode:
authorCMorin <barthy42@laposte.net>2019-08-19 19:00:49 +0200
committerMartin Braun <martin.braun@ettus.com>2020-01-03 22:51:01 -0800
commitbaebf16b58448b93f7e143bc50ed5d78492658b2 (patch)
treec5b26134f360d8405823701a44c1adccc10cb307 /grc/gui/canvas/flowgraph.py
parenteafa2d050bc60c0cc8f6cc4b19a31960336ca0e0 (diff)
grc: Fix drag style block connection with auto-hide port labels
Diffstat (limited to 'grc/gui/canvas/flowgraph.py')
-rw-r--r--grc/gui/canvas/flowgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/canvas/flowgraph.py b/grc/gui/canvas/flowgraph.py
index 9657930f11..d8507d41e4 100644
--- a/grc/gui/canvas/flowgraph.py
+++ b/grc/gui/canvas/flowgraph.py
@@ -755,8 +755,6 @@ class FlowGraph(CoreFlowgraph, Drawable):
def _handle_mouse_motion_move(self, coordinate):
# only continue if mouse-over stuff is enabled (just the auto-hide port label stuff for now)
- if not Actions.TOGGLE_AUTO_HIDE_PORT_LABELS.get_active():
- return
redraw = False
for element in self._elements_to_draw:
over_element = element.what_is_selected(coordinate)
@@ -772,6 +770,8 @@ class FlowGraph(CoreFlowgraph, Drawable):
if self.element_under_mouse:
redraw |= self.element_under_mouse.mouse_out() or False
self.element_under_mouse = None
+ if not Actions.TOGGLE_AUTO_HIDE_PORT_LABELS.get_active():
+ return
if redraw:
# self.create_labels()
self.create_shapes()