diff options
-rw-r--r-- | grc/core/Messages.py | 4 | ||||
-rw-r--r-- | grc/gui/MainWindow.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/Messages.py b/grc/core/Messages.py index 2a597d367c..6d67dc7d2e 100644 --- a/grc/core/Messages.py +++ b/grc/core/Messages.py @@ -26,8 +26,8 @@ MESSENGERS_LIST = list() _indent = '' # Global FlowGraph Error and the file that caused it -global flowgraph_error -global flowgraph_error_file +flowgraph_error = None +flowgraph_error_file = None def register_messenger(messenger): diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py index 7d0337856e..eac6cfc9f6 100644 --- a/grc/gui/MainWindow.py +++ b/grc/gui/MainWindow.py @@ -260,7 +260,7 @@ class MainWindow(Gtk.ApplicationWindow): flow_graph=flow_graph, file_path=file_path, ) - if str(Messages.flowgraph_error) is not None: + if getattr(Messages, 'flowgraph_error') is not None: Messages.send( ">>> Check: {}\n>>> FlowGraph Error: {}\n".format( str(Messages.flowgraph_error_file), |