forked from openlp/openlp
Stop double loading of service items
This commit is contained in:
parent
8f692d13be
commit
2d43cd2d8a
|
@ -419,6 +419,11 @@ class SlideController(QtGui.QWidget):
|
||||||
Called by ServiceManager
|
Called by ServiceManager
|
||||||
"""
|
"""
|
||||||
log.debug(u'addServiceManagerItem')
|
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 old item was a command tell it to stop
|
||||||
if self.serviceItem and self.serviceItem.is_command():
|
if self.serviceItem and self.serviceItem.is_command():
|
||||||
self.onMediaStop()
|
self.onMediaStop()
|
||||||
|
|
Loading…
Reference in New Issue