diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-03-16 16:25:09 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-04-05 10:10:36 +0200 |
commit | c285036f5674ee54c16b46c3088ed86503d63d83 (patch) | |
tree | 40888ab30b540c86037a8af117a258d56dce10eb /grc/gui/FlowGraph.py | |
parent | 3201557bfbed7ad81e0e5a34ece48bbd93ad709b (diff) |
grc-refactor: remove (hopefully) all deps to GR in core/ and gui/
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r-- | grc/gui/FlowGraph.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index 25fb157b1e..2f8ca0070e 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -88,8 +88,9 @@ class FlowGraph(Element, _Flowgraph): if target in self._external_updaters: editor = self._external_updaters[target] else: - editor = (find_executable(Constants.EDITOR) or - Dialogs.ChooseEditorDialog()) + config = self.get_parent().config + editor = (find_executable(config.editor) or + Dialogs.ChooseEditorDialog(config)) if not editor: return updater = functools.partial( @@ -106,9 +107,7 @@ class FlowGraph(Element, _Flowgraph): # Problem launching the editor. Need to select a new editor. Messages.send('>>> Error opening an external editor. Please select a different editor.\n') # Reset the editor to force the user to select a new one. - Constants.prefs.set_string('grc', 'editor', '') - Constants.prefs.save() - Constants.EDITOR = "" + self.get_parent().config.editor = '' def handle_external_editor_change(self, new_value, target): try: |