small fixes

This commit is contained in:
Dmitriy Marmyshev 2013-07-09 01:26:31 +04:00
parent ed66c5cf34
commit 25ed0ab4d7
3 changed files with 3 additions and 2 deletions

View File

@ -108,8 +108,7 @@ class ItemCapabilities(object):
The capability to ignore the do not play if display blank flag.
``CanEditTitle``
The capability to allow the ServiceManager to allow the title of the item to be
edited
The capability to edit the title of the item
"""
CanPreview = 1

View File

@ -196,6 +196,7 @@ class MediaMediaItem(MediaManagerItem):
return False
service_item.add_capability(ItemCapabilities.CanAutoStartForLive)
service_item.add_capability(ItemCapabilities.RequiresMedia)
service_item.add_capability(ItemCapabilities.CanEditTitle)
if Settings().value(self.settings_section + u'/media auto start') == QtCore.Qt.Checked:
service_item.will_auto_start = True
# force a non-existent theme

View File

@ -246,6 +246,7 @@ class PresentationMediaItem(MediaManagerItem):
return False
service_item.processor = self.display_type_combo_box.currentText()
service_item.add_capability(ItemCapabilities.ProvidesOwnDisplay)
service_item.add_capability(ItemCapabilities.CanEditTitle)
if not self.display_type_combo_box.currentText():
return False
for bitem in items: