forked from openlp/openlp
Minor fixes
This commit is contained in:
parent
851f5a4e47
commit
edad400a73
@ -107,7 +107,7 @@ class PresentationMediaItem(MediaManagerItem):
|
|||||||
#load the drop down selection
|
#load the drop down selection
|
||||||
if self.controllers[item].enabled:
|
if self.controllers[item].enabled:
|
||||||
self.DisplayTypeComboBox.addItem(item)
|
self.DisplayTypeComboBox.addItem(item)
|
||||||
if self.DisplayTypeComboBox.count > 1:
|
if self.DisplayTypeComboBox.count() > 1:
|
||||||
self.DisplayTypeComboBox.insertItem(0, u'Automatic')
|
self.DisplayTypeComboBox.insertItem(0, u'Automatic')
|
||||||
self.DisplayTypeComboBox.setCurrentIndex(0)
|
self.DisplayTypeComboBox.setCurrentIndex(0)
|
||||||
|
|
||||||
|
@ -114,17 +114,3 @@ class PresentationPlugin(Plugin):
|
|||||||
'programs. The choice of available presentation programs is '
|
'programs. The choice of available presentation programs is '
|
||||||
'available to the user in a drop down box.')
|
'available to the user in a drop down box.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def find_controller_by_type(self, filename):
|
|
||||||
filetype = os.path.splitext(filename)[1][1:]
|
|
||||||
if not filetype:
|
|
||||||
return None
|
|
||||||
for controller in self.controllers:
|
|
||||||
if self.controllers[controller].enabled:
|
|
||||||
if filetype in self.controllers[controller].supports:
|
|
||||||
return controller
|
|
||||||
for controller in self.controllers:
|
|
||||||
if self.controllers[controller].enabled:
|
|
||||||
if filetype in self.controllers[self.handler].alsosupports:
|
|
||||||
return controller
|
|
||||||
return None
|
|
||||||
|
Loading…
Reference in New Issue
Block a user