From 2fee267dfee11bd687b4d780cb6b82924d59af3c Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Thu, 23 Jul 2015 16:36:22 +0200
Subject: grc: open and update params from external editor

---
 grc/gui/ActionHandler.py | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'grc/gui/ActionHandler.py')

diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index ee01595a33..6273178955 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -441,6 +441,10 @@ class ActionHandler:
                         # null action, that updates the main window
                         Actions.ELEMENT_SELECT()
                 dialog.destroy()
+        elif action == Actions.EXTERNAL_UPDATE:
+            self.get_page().get_state_cache().save_new_state(self.get_flow_graph().export_data())
+            self.get_flow_graph().update()
+            self.get_page().set_saved(False)
         ##################################################
         # View Parser Errors
         ##################################################
-- 
cgit v1.2.3