From 00eecfc8c237bbf3be84815b187af71f4a8c52d2 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 5 Sep 2009 09:52:01 +0100 Subject: [PATCH] Presentation Plugin - cleanup --- openlp/core/lib/pluginmanager.py | 1 + openlp/plugins/presentations/presentationplugin.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/pluginmanager.py b/openlp/core/lib/pluginmanager.py index 484d74f97..c1eaf79fb 100644 --- a/openlp/core/lib/pluginmanager.py +++ b/openlp/core/lib/pluginmanager.py @@ -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. diff --git a/openlp/plugins/presentations/presentationplugin.py b/openlp/plugins/presentations/presentationplugin.py index 0f3a230e1..32dcf6f64 100644 --- a/openlp/plugins/presentations/presentationplugin.py +++ b/openlp/plugins/presentations/presentationplugin.py @@ -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