forked from openlp/openlp
Unbreak presentations slightly
This commit is contained in:
parent
9605183812
commit
55dd795a45
@ -14,3 +14,4 @@ dist
|
||||
OpenLP.egg-info
|
||||
build
|
||||
resources/innosetup/Output
|
||||
_eric4project
|
||||
|
@ -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(
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user