7572: Do not hide categorysidebar from Plugins Manager, do not try to restore hidden gramplets, typo on grampletbar (LOG.warning)

This commit is contained in:
Jérôme Rapinat 2014-04-01 12:00:10 +02:00
parent 71ac10ef4d
commit b39daf09b1
3 changed files with 8 additions and 2 deletions

View File

@ -237,7 +237,10 @@ class Navigator(object):
self.merge_ids.append(mergeid)
# Call the view_changed method for the active sidebar
sidebar = self.pages[self.notebook.get_current_page()][1]
try:
sidebar = self.pages[self.notebook.get_current_page()][1]
except IndexError:
return
sidebar.view_changed(cat_num, view_num)
def cb_view_clicked(self, radioaction, current, cat_num):

View File

@ -291,7 +291,7 @@ class GrampletBar(Gtk.Notebook):
gramplet = make_requested_gramplet(TabGramplet, self, all_opts,
self.dbstate, self.uistate)
if not gramplet:
LOG.warning("Problem creating ", gname)
LOG.warning("Problem creating '%s'", gname)
return
page_num = self.__add_tab(gramplet)

View File

@ -173,6 +173,9 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate):
"""
Make a GUI gramplet given its name.
"""
if opts == None:
return None
if "name" in opts:
name = opts["name"]
if name in AVAILABLE_GRAMPLETS():