2006-07-30 Alex Roitman <shura@gramps-project.org>

* src/ViewManager.py (ViewManager.do_load_plugins): Catch exception;
	(ViewManager.plugin_status): Catch exception.



svn: r7095
This commit is contained in:
Alex Roitman 2006-07-30 18:13:38 +00:00
parent df1e865d38
commit 92bbf0359b
2 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-07-30 Alex Roitman <shura@gramps-project.org>
* src/ViewManager.py (ViewManager.do_load_plugins): Catch exception;
(ViewManager.plugin_status): Catch exception.
2006-07-29 Alex Roitman <shura@gramps-project.org>
* src/plugins/changetype.glade: Update text warning.
* src/Editors/_EditMedia.py (EditMedia.save): Use absolute path

View File

@ -436,7 +436,14 @@ class ViewManager:
error |= load_plugins(const.pluginsDir)
error |= load_plugins(os.path.join(const.home_dir, "plugins"))
if Config.get(Config.POP_PLUGIN_STATUS) and error:
PluginStatus.PluginStatus(self.state, self.uistate, [])
try:
PluginStatus.PluginStatus(self.state, self.uistate, [])
except Errors.WindowActiveError:
old_win = self.uistate.gwm.get_item_from_id(
PluginStatus.PluginStatus)
old_win.close()
PluginStatus.PluginStatus(self.state,self.uistate, [])
self.uistate.push_message(_('Ready'))
def quit(self, obj=None):
@ -537,7 +544,14 @@ class ViewManager:
def plugin_status(self, obj):
"""Display Tip of the day"""
PluginStatus.PluginStatus(self.state, self.uistate, [])
try:
PluginStatus.PluginStatus(self.state, self.uistate, [])
except Errors.WindowActiveError:
old_win = self.uistate.gwm.get_item_from_id(
PluginStatus.PluginStatus)
old_win.close()
PluginStatus.PluginStatus(self.state,self.uistate, [])
def about(self, obj):
about = gtk.AboutDialog()