Proper fix for 632674

This commit is contained in:
Tim Bentley 2010-09-08 20:36:39 +01:00
parent ccb75ad3b6
commit 3bfea1c715

View File

@ -58,6 +58,9 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
Load the plugin details into the screen
"""
self.pluginListWidget.clear()
self.programaticChange = True
self._clearDetails()
self.programaticChange = True
for plugin in self.parent.plugin_manager.plugins:
item = QtGui.QListWidgetItem(self.pluginListWidget)
# We do this just to make 100% sure the status is an integer as
@ -134,6 +137,5 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
elif self.activePlugin.status == PluginStatus.Disabled:
status_text = unicode(
translate('OpenLP.PluginForm', '%s (Disabled)'))
if self.pluginListWidget.currentItem():
self.pluginListWidget.currentItem().setText(
status_text % self.activePlugin.name)
self.pluginListWidget.currentItem().setText(
status_text % self.activePlugin.name)