forked from openlp/openlp
fix Traceback with appStartup() if plugin is disabled
This commit is contained in:
parent
018b5d70a7
commit
975808d11e
@ -655,7 +655,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
# Give all the plugins a chance to perform some tasks at startup
|
# Give all the plugins a chance to perform some tasks at startup
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
for plugin in self.pluginManager.plugins:
|
for plugin in self.pluginManager.plugins:
|
||||||
if hasattr(plugin, u'appStartup'):
|
if plugin.isActive() and hasattr(plugin, u'appStartup'):
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
plugin.appStartup()
|
plugin.appStartup()
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
|
Loading…
Reference in New Issue
Block a user