Old spelling bug

This commit is contained in:
Tim Bentley 2011-03-15 19:55:49 +00:00
parent 040738718c
commit 23bfaf1566
3 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@ class ItemCapabilities(object):
AddIfNewItem = 9 AddIfNewItem = 9
ProvidesOwnDisplay = 10 ProvidesOwnDisplay = 10
AllowsDetailedTitleDisplay = 11 AllowsDetailedTitleDisplay = 11
AllowsVarableStartTime = 12 AllowsVariableStartTime = 12
class ServiceItem(object): class ServiceItem(object):

View File

@ -618,7 +618,7 @@ class ServiceManager(QtGui.QWidget):
if item.parent() is None: if item.parent() is None:
self.notesAction.setVisible(True) self.notesAction.setVisible(True)
if serviceItem[u'service_item']\ if serviceItem[u'service_item']\
.is_capable(ItemCapabilities.AllowsVarableStartTime): .is_capable(ItemCapabilities.AllowsVariableStartTime):
self.timeAction.setVisible(True) self.timeAction.setVisible(True)
self.themeMenu.menuAction().setVisible(False) self.themeMenu.menuAction().setVisible(False)
if serviceItem[u'service_item'].is_text(): if serviceItem[u'service_item'].is_text():
@ -905,7 +905,7 @@ class ServiceManager(QtGui.QWidget):
child.setText(0, text[:40]) child.setText(0, text[:40])
child.setData(0, QtCore.Qt.UserRole, QtCore.QVariant(count)) child.setData(0, QtCore.Qt.UserRole, QtCore.QVariant(count))
if item[u'service_item'] \ if item[u'service_item'] \
.is_capable(ItemCapabilities.AllowsVarableStartTime): .is_capable(ItemCapabilities.AllowsVariableStartTime):
tip = item[u'service_item'].get_media_time() tip = item[u'service_item'].get_media_time()
if tip: if tip:
child.setToolTip(0, tip) child.setToolTip(0, tip)

View File

@ -143,7 +143,7 @@ class MediaMediaItem(MediaManagerItem):
Receiver.send_message(u'openlp_process_events') Receiver.send_message(u'openlp_process_events')
service_item.media_length = self.mediaLength service_item.media_length = self.mediaLength
service_item.add_capability( service_item.add_capability(
ItemCapabilities.AllowsVarableStartTime) ItemCapabilities.AllowsVariableStartTime)
service_item.add_from_command(path, name, frame) service_item.add_from_command(path, name, frame)
return True return True
else: else: