[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/04: grc: add applied parameter changes t
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/04: grc: add applied parameter changes to undo history |
Date: |
Sun, 12 Apr 2015 03:57:24 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 381b162a3ca8e476866f0387e9a2f5016f87cfae
Author: Sebastian Koslowski <address@hidden>
Date: Thu Apr 9 15:43:08 2015 +0200
grc: add applied parameter changes to undo history
---
grc/gui/ActionHandler.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 83ce5ff..fee9662 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -413,12 +413,9 @@ class ActionHandler:
if selected_block:
dialog = PropsDialog(selected_block)
response = gtk.RESPONSE_APPLY
- while response == gtk.RESPONSE_APPLY: # do while construct:
rerun the dialog if Apply was hit
+ while response == gtk.RESPONSE_APPLY: # rerun the dialog if
Apply was hit
response = dialog.run()
- if response == gtk.RESPONSE_APPLY:
- self.get_flow_graph().update()
- Actions.ELEMENT_SELECT() # empty action, that updates
the main window and flowgraph
- elif response == gtk.RESPONSE_ACCEPT:
+ if response in (gtk.RESPONSE_APPLY, gtk.RESPONSE_ACCEPT):
self.get_flow_graph().update()
self.get_page().get_state_cache().save_new_state(self.get_flow_graph().export_data())
self.get_page().set_saved(False)
@@ -426,6 +423,9 @@ class ActionHandler:
n =
self.get_page().get_state_cache().get_current_state()
self.get_flow_graph().import_data(n)
self.get_flow_graph().update()
+ if response == gtk.RESPONSE_APPLY:
+ # null action, that updates the main window
+ Actions.ELEMENT_SELECT()
dialog.destroy()
##################################################
# View Parser Errors