Fixed reset presentation bug

This commit is contained in:
Tim Bentley 2009-09-13 20:31:31 +01:00
parent 8b9e9665f8
commit f4599bf947
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ class SlideController(QtGui.QWidget):
log.debug(u'addServiceItem')
#If old item was a command tell it to stop
if self.commandItem is not None and self.commandItem.service_item_type == ServiceType.Command:
Receiver().send_message(u'%s_stop'% self.item.name.lower())
Receiver().send_message(u'%s_stop'% self.commandItem.name.lower())
self.commandItem = item
item.render()
self.enableToolBar(item)
@ -258,7 +258,7 @@ class SlideController(QtGui.QWidget):
log.debug(u'addServiceItem')
#If old item was a command tell it to stop
if self.commandItem is not None and self.commandItem.service_item_type == ServiceType.Command:
Receiver().send_message(u'%s_stop'% self.item.name.lower())
Receiver().send_message(u'%s_stop'% self.commandItem.name.lower())
self.commandItem = item
self.enableToolBar(item)
if item.service_item_type == ServiceType.Command: