Minor fixes

This commit is contained in:
Jonathan Corwin 2010-03-05 19:50:51 +00:00
parent 851f5a4e47
commit edad400a73
2 changed files with 1 additions and 15 deletions

View File

@ -107,7 +107,7 @@ class PresentationMediaItem(MediaManagerItem):
#load the drop down selection
if self.controllers[item].enabled:
self.DisplayTypeComboBox.addItem(item)
if self.DisplayTypeComboBox.count > 1:
if self.DisplayTypeComboBox.count() > 1:
self.DisplayTypeComboBox.insertItem(0, u'Automatic')
self.DisplayTypeComboBox.setCurrentIndex(0)

View File

@ -114,17 +114,3 @@ class PresentationPlugin(Plugin):
'programs. The choice of available presentation programs is '
'available to the user in a drop down box.')
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