Stop double loading of service items

This commit is contained in:
Tim Bentley 2010-03-21 15:08:46 +00:00
parent 8f692d13be
commit 2d43cd2d8a
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,11 @@ class SlideController(QtGui.QWidget):
Called by ServiceManager
"""
log.debug(u'addServiceManagerItem')
#If service item is the same as the current on only change slide
if item.__eq__(self.serviceItem):
self.PreviewListWidget.selectRow(slideno)
self.onSlideSelected()
return
#If old item was a command tell it to stop
if self.serviceItem and self.serviceItem.is_command():
self.onMediaStop()