Fix Bug #793091 - if plugin changed status from inactive to active plugin.appStartup is called

This commit is contained in:
Armin Köhler 2011-06-05 20:19:44 +02:00
parent a652c8ef59
commit 5505644176
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
Receiver.send_message(u'cursor_busy')
self.activePlugin.toggleStatus(PluginStatus.Active)
Receiver.send_message(u'cursor_normal')
if hasattr(self.activePlugin, u'appStartup'):
Receiver.send_message(u'openlp_process_events')
self.activePlugin.appStartup()
else:
self.activePlugin.toggleStatus(PluginStatus.Inactive)
status_text = unicode(