Stop preview media and presentations when moving them live

bzr-revno: 1558
This commit is contained in:
Tim Bentley 2011-05-20 17:15:24 +01:00
commit 14435e9725

View File

@ -1050,6 +1050,14 @@ class SlideController(QtGui.QWidget):
""" """
if QtCore.QSettings().value(u'advanced/double click live', if QtCore.QSettings().value(u'advanced/double click live',
QtCore.QVariant(False)).toBool(): QtCore.QVariant(False)).toBool():
# Live and Preview have issues if we have video or presentations
# playing in both at the same time.
if self.serviceItem.is_command():
Receiver.send_message(u'%s_stop' %
self.serviceItem.name.lower(),
[self.serviceItem, self.isLive])
if self.serviceItem.is_media():
self.onMediaClose()
self.onGoLive() self.onGoLive()
def onGoLive(self): def onGoLive(self):