Stop the media / presentation if going from Preview to Live

Fixes: https://launchpad.net/bugs/780095
This commit is contained in:
Tim Bentley 2011-05-20 11:01:48 +01:00
parent 0c2196339a
commit 66d851887a

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):