Fix bug in preferences when opening to the plugins page

This commit is contained in:
Andrew Resch 2008-11-27 05:19:29 +00:00
parent ccbf75d5b9
commit c6d67b824a
1 changed files with 2 additions and 0 deletions

View File

@ -801,6 +801,8 @@ class Preferences(component.Component):
def on_plugin_selection_changed(self, treeselection):
log.debug("on_plugin_selection_changed")
(model, itr) = treeselection.get_selected()
if not itr:
return
name = model[itr][0]
plugin_info = component.get("PluginManager").get_plugin_info(name)
self.glade.get_widget("label_plugin_author").set_text(plugin_info["Author"])