commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/11: grc: fix 'Parser errors' menu item


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/11: grc: fix 'Parser errors' menu item
Date: Sun, 17 Jan 2016 18:02:47 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit d442b6d4d86266b986beda32a5ab4ce4da143e89
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Dec 30 21:19:41 2015 +0100

    grc: fix 'Parser errors' menu item
---
 grc/gui/ActionHandler.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index b913541..7766a0a 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():



reply via email to

[Prev in Thread] Current Thread [Next in Thread]