[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():
- [Commit-gnuradio] [gnuradio] 08/11: Merge remote-tracking branch 'tom/issue812' into maint, (continued)
- [Commit-gnuradio] [gnuradio] 08/11: Merge remote-tracking branch 'tom/issue812' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 11/11: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 04/11: gru: Fixes an obsolete numpy function call., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 02/11: analog: Addresses issue #831., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 03/11: analog: enable setting max dev. during runtime for NBFM transmitter and receiver hier_blocks., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 05/11: digital: Addresses issue #812., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 06/11: Updated URL to UHD manual in USRP sink and source blocks, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 10/11: Merge remote-tracking branch 'dkozel/fix-uhd-manual-url' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 09/11: gr-utils: Update error message, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 07/11: Merge remote-tracking branch 'tom/nbfm' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 01/11: grc: fix 'Parser errors' menu item,
git <=