Fix bug in preferences when opening to the plugins page
This commit is contained in:
parent
ccbf75d5b9
commit
c6d67b824a
|
@ -801,6 +801,8 @@ class Preferences(component.Component):
|
||||||
def on_plugin_selection_changed(self, treeselection):
|
def on_plugin_selection_changed(self, treeselection):
|
||||||
log.debug("on_plugin_selection_changed")
|
log.debug("on_plugin_selection_changed")
|
||||||
(model, itr) = treeselection.get_selected()
|
(model, itr) = treeselection.get_selected()
|
||||||
|
if not itr:
|
||||||
|
return
|
||||||
name = model[itr][0]
|
name = model[itr][0]
|
||||||
plugin_info = component.get("PluginManager").get_plugin_info(name)
|
plugin_info = component.get("PluginManager").get_plugin_info(name)
|
||||||
self.glade.get_widget("label_plugin_author").set_text(plugin_info["Author"])
|
self.glade.get_widget("label_plugin_author").set_text(plugin_info["Author"])
|
||||||
|
|
Loading…
Reference in New Issue