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
1 changed files with 9 additions and 1 deletions

View File

@ -1050,7 +1050,15 @@ class SlideController(QtGui.QWidget):
"""
if QtCore.QSettings().value(u'advanced/double click live',
QtCore.QVariant(False)).toBool():
self.onGoLive()
# 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()
def onGoLive(self):
"""