@@ -115,10 +115,6 @@ def _handle_action(self, action, *args):
115
115
# Initialize/Quit
116
116
##################################################
117
117
if action == Actions .APPLICATION_INITIALIZE :
118
- if ParseXML .xml_failures :
119
- Messages .send_xml_errors_if_any (ParseXML .xml_failures )
120
- Actions .XML_PARSER_ERRORS_DISPLAY .set_sensitive (True )
121
-
122
118
if not self .init_file_paths :
123
119
self .init_file_paths = filter (os .path .exists , Preferences .get_open_files ())
124
120
if not self .init_file_paths : self .init_file_paths = ['' ]
@@ -131,7 +127,8 @@ def _handle_action(self, action, *args):
131
127
self .main_window .btwin .search_entry .hide ()
132
128
133
129
# Disable all actions, then re-enable a few
134
- for action in Actions .get_all_actions (): action .set_sensitive (False ) #set all actions disabled
130
+ for action in Actions .get_all_actions ():
131
+ action .set_sensitive (False ) # set all actions disabled
135
132
for action in (
136
133
Actions .APPLICATION_QUIT , Actions .FLOW_GRAPH_NEW ,
137
134
Actions .FLOW_GRAPH_OPEN , Actions .FLOW_GRAPH_SAVE_AS ,
@@ -150,6 +147,9 @@ def _handle_action(self, action, *args):
150
147
action .set_sensitive (True )
151
148
if hasattr (action , 'load_from_preferences' ):
152
149
action .load_from_preferences ()
150
+ if ParseXML .xml_failures :
151
+ Messages .send_xml_errors_if_any (ParseXML .xml_failures )
152
+ Actions .XML_PARSER_ERRORS_DISPLAY .set_sensitive (True )
153
153
154
154
elif action == Actions .APPLICATION_QUIT :
155
155
if self .main_window .close_pages ():
0 commit comments