diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-01-17 09:01:45 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-01-17 09:01:45 -0800 |
commit | 4ce1d4991f41173d6e2e6469f6b61e205b7172a5 (patch) | |
tree | 08f19f977e73f775e3b204b0d21f679520044113 | |
parent | e4113d13f90a171b81b9741fc7242e886f600813 (diff) | |
parent | d442b6d4d86266b986beda32a5ab4ce4da143e89 (diff) |
Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint
-rw-r--r-- | grc/gui/ActionHandler.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index b9135418a3..7766a0a853 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -115,10 +115,6 @@ class ActionHandler: # Initialize/Quit ################################################## if action == Actions.APPLICATION_INITIALIZE: - if ParseXML.xml_failures: - Messages.send_xml_errors_if_any(ParseXML.xml_failures) - Actions.XML_PARSER_ERRORS_DISPLAY.set_sensitive(True) - if not self.init_file_paths: self.init_file_paths = filter(os.path.exists, Preferences.get_open_files()) if not self.init_file_paths: self.init_file_paths = [''] @@ -131,7 +127,8 @@ class ActionHandler: self.main_window.btwin.search_entry.hide() # Disable all actions, then re-enable a few - for action in Actions.get_all_actions(): action.set_sensitive(False) #set all actions disabled + for action in Actions.get_all_actions(): + action.set_sensitive(False) # set all actions disabled for action in ( Actions.APPLICATION_QUIT, Actions.FLOW_GRAPH_NEW, Actions.FLOW_GRAPH_OPEN, Actions.FLOW_GRAPH_SAVE_AS, @@ -150,6 +147,9 @@ class ActionHandler: action.set_sensitive(True) if hasattr(action, 'load_from_preferences'): action.load_from_preferences() + if ParseXML.xml_failures: + Messages.send_xml_errors_if_any(ParseXML.xml_failures) + Actions.XML_PARSER_ERRORS_DISPLAY.set_sensitive(True) elif action == Actions.APPLICATION_QUIT: if self.main_window.close_pages(): |