Presentation Plugin - cleanup

This commit is contained in:
Tim Bentley 2009-09-05 09:52:01 +01:00
parent b94f091fb2
commit 00eecfc8c2
2 changed files with 3 additions and 1 deletions

View File

@ -135,6 +135,7 @@ class PluginManager(object):
"""
Loop through all the plugins. If a plugin has a valid settings tab
item, add it to the settings tab.
Tabs are set for all plugins not just Active ones
``settingsform``
Defaults to *None*. The settings form to add tabs to.

View File

@ -19,6 +19,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
"""
import os
import sys
import logging
from PyQt4 import QtCore, QtGui
@ -73,7 +74,7 @@ class PresentationPlugin(Plugin):
openoffice = impressController()
self.registerControllers(u'Impress', openoffice)
except:
pass
log.error(u'Reason : %s', sys.exc_info()[0])
#If we have no controllers disable plugin
if len(self.controllers) > 0:
return True