summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorSolomon Tan <solomonbstoner@yahoo.com.au>2021-06-18 18:13:23 +0800
committermormj <34754695+mormj@users.noreply.github.com>2021-06-19 19:33:19 -0400
commitbfb5e3baa88763adb9e40ae3c511e317695fedb5 (patch)
tree8e34fc2c9a143f9f24e9dcb7e5c10cdaffac5c9e /grc/gui
parent3d20be8b39ec67cbed6aa12038c45c0484c3b857 (diff)
grc: Update flowgraph vars controlled by vars
Fixes #4781. When a variable is controlled by another variable, updating the latter does not update the former in the flowgraph when `Ok` is pressed. Caused by commit c4f46bf. This commit patches the bug. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/Application.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py
index a5ea248bcc..807f2a7bdb 100644
--- a/grc/gui/Application.py
+++ b/grc/gui/Application.py
@@ -557,7 +557,7 @@ class Application(Gtk.Application):
### Following line forces a complete update of io ports
flow_graph_update()
page.saved = False
- else: # restore the current state
+ if response in (Gtk.ResponseType.REJECT, Gtk.ResponseType.ACCEPT):
n = page.state_cache.get_current_state()
flow_graph.import_data(n)
flow_graph_update()