Fix displayed preview

This commit is contained in:
Tim Bentley 2012-11-18 07:56:12 +00:00
parent 506fd80f89
commit acadf89a34
2 changed files with 1 additions and 2 deletions

View File

@ -180,7 +180,6 @@ class MediaController(object):
Check if there is a running media Player and do updating stuff (e.g.
update the UI)
"""
print "state"
if not self.currentMediaPlayer.keys():
self.timer.stop()
else:
@ -595,7 +594,6 @@ class MediaController(object):
The controller that needs to be stopped
"""
log.debug(u'media_stop')
print "play"
display = self._define_display(controller)
if display in self.currentMediaPlayer:
display.frame.evaluateJavaScript(u'show_blank("black");')

View File

@ -71,6 +71,7 @@ class MediaMediaItem(MediaManagerItem):
False)
self.displayController.previewDisplay = Display(self.displayController,
False, self.displayController)
self.displayController.previewDisplay.hide()
self.displayController.previewDisplay.setGeometry(
QtCore.QRect(0, 0, 300, 300))
self.displayController.previewDisplay.screen = \