Unbreak presentations slightly

This commit is contained in:
Jon Tibble 2010-04-27 22:30:04 +01:00
parent 9605183812
commit 55dd795a45
3 changed files with 6 additions and 3 deletions

View File

@ -14,3 +14,4 @@ dist
OpenLP.egg-info
build
resources/innosetup/Output
_eric4project

View File

@ -102,8 +102,8 @@ class PresentationController(object):
self.name = name
self.available = self.check_available()
if self.available:
self.enabled = QtCore.QSettings().value(
name, QtCore.Qt.Unchecked).toInt()[0] == QtCore.Qt.Checked
self.enabled = QtCore.QSettings().value(u'presentations/' + name,
QtCore.Qt.Unchecked).toInt()[0] == QtCore.Qt.Checked
else:
self.enabled = False
self.thumbnailroot = os.path.join(

View File

@ -96,7 +96,9 @@ class PresentationPlugin(Plugin):
try:
__import__(modulename, globals(), locals(), [])
except ImportError, e:
log.error(u'Failed to import %s on path %s for reason %s', modulename, path, e.args[0])
log.error(
u'Failed to import %s on path %s for reason %s',
modulename, path, e.args[0])
controller_classes = PresentationController.__subclasses__()
for controller_class in controller_classes:
controller = controller_class(self)