forked from openlp/openlp
Presentation Plugin - cleanup
This commit is contained in:
parent
b94f091fb2
commit
00eecfc8c2
@ -135,6 +135,7 @@ class PluginManager(object):
|
|||||||
"""
|
"""
|
||||||
Loop through all the plugins. If a plugin has a valid settings tab
|
Loop through all the plugins. If a plugin has a valid settings tab
|
||||||
item, add it to the settings tab.
|
item, add it to the settings tab.
|
||||||
|
Tabs are set for all plugins not just Active ones
|
||||||
|
|
||||||
``settingsform``
|
``settingsform``
|
||||||
Defaults to *None*. The settings form to add tabs to.
|
Defaults to *None*. The settings form to add tabs to.
|
||||||
|
@ -19,6 +19,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
@ -73,7 +74,7 @@ class PresentationPlugin(Plugin):
|
|||||||
openoffice = impressController()
|
openoffice = impressController()
|
||||||
self.registerControllers(u'Impress', openoffice)
|
self.registerControllers(u'Impress', openoffice)
|
||||||
except:
|
except:
|
||||||
pass
|
log.error(u'Reason : %s', sys.exc_info()[0])
|
||||||
#If we have no controllers disable plugin
|
#If we have no controllers disable plugin
|
||||||
if len(self.controllers) > 0:
|
if len(self.controllers) > 0:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user