summaryrefslogtreecommitdiff
path: root/grc/gui/ActionHandler.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-04-09 15:43:08 +0200
committerSebastian Koslowski <koslowski@kit.edu>2015-04-09 15:43:08 +0200
commit381b162a3ca8e476866f0387e9a2f5016f87cfae (patch)
treebebe0e0948cc92e9236c124834f4a31cda0dd969 /grc/gui/ActionHandler.py
parentfbcb97a0f39a5be71ff766175743550eeeb699e8 (diff)
grc: add applied parameter changes to undo history
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r--grc/gui/ActionHandler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 83ce5ff8ce..fee96624bb 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