- fixed bug #1147307 (Transtion + fast slide changes + ESC causes screen to open again)

bzr-revno: 2138
Fixes: https://launchpad.net/bugs/1147307
This commit is contained in:
Andreas Preikschat 2013-03-08 09:34:26 +01:00
commit 46b3552c2c

View File

@ -362,6 +362,7 @@ class MainDisplay(Display):
Generates a preview of the image displayed.
"""
log.debug(u'preview for %s', self.isLive)
was_visible = self.isVisible()
Receiver.send_message(u'openlp_process_events')
# We must have a service item to preview.
if self.isLive and hasattr(self, u'serviceItem'):
@ -380,7 +381,8 @@ class MainDisplay(Display):
if self.isLive:
if self.hideMode:
self.hideDisplay(self.hideMode)
else:
# Only continue if the visibility wasn't changed during method call.
elif was_visible == self.isVisible():
# Single screen active
if self.screens.display_count == 1:
# Only make visible if setting enabled.