diff options
Diffstat (limited to 'grc/gui/Connection.py')
-rw-r--r-- | grc/gui/Connection.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/grc/gui/Connection.py b/grc/gui/Connection.py index 9035e5e207..5e3353c5c1 100644 --- a/grc/gui/Connection.py +++ b/grc/gui/Connection.py @@ -158,16 +158,13 @@ class Connection(Element, _Connection): #check for changes if self._sink_rot != sink.get_rotation() or self._source_rot != source.get_rotation(): self.create_shapes() - elif self._sink_coor != sink.get_coordinate() or self._source_coor != source.get_coordinate(): - try: - self._update_after_move() - except: - return # todo: why? - #cache values - self._sink_rot = sink.get_rotation() - self._source_rot = source.get_rotation() - self._sink_coor = sink.get_coordinate() - self._source_coor = source.get_coordinate() + self._sink_rot = sink.get_rotation() + self._source_rot = source.get_rotation() + + elif self._sink_coor != sink.parent_block.get_coordinate() or self._source_coor != source.parent_block.get_coordinate(): + self._update_after_move() + self._sink_coor = sink.parent_block.get_coordinate() + self._source_coor = source.parent_block.get_coordinate() # draw color1, color2 = ( Colors.HIGHLIGHT_COLOR if self.is_highlighted() else |