restored original code

This commit is contained in:
Dmitriy Marmyshev 2013-05-16 09:05:41 +04:00
parent ce807f57b6
commit e52cfa0256

View File

@ -543,11 +543,9 @@ class ImageMediaItem(MediaManagerItem):
if not items: if not items:
return False return False
# Determine service item title # Determine service item title
if (isinstance(items[0].data(0, QtCore.Qt.UserRole), ImageGroups) or len(items) == 1)\ if isinstance(items[0].data(0, QtCore.Qt.UserRole), ImageGroups):
and len(service_item._raw_frames) ==0:
service_item.title = items[0].text(0) service_item.title = items[0].text(0)
elif len(service_item._raw_frames) == 1 and service_item.title == service_item._raw_frames[0][u'title']\ else:
or len(items) > 1 and len(service_item._raw_frames) ==0:
service_item.title = unicode(self.plugin.name_strings[u'plural']) service_item.title = unicode(self.plugin.name_strings[u'plural'])
service_item.add_capability(ItemCapabilities.CanMaintain) service_item.add_capability(ItemCapabilities.CanMaintain)
service_item.add_capability(ItemCapabilities.CanPreview) service_item.add_capability(ItemCapabilities.CanPreview)