Spotted video bug

This commit is contained in:
Tim Bentley 2010-08-24 18:28:13 +01:00
parent 7359e91283
commit 46e35ead28
1 changed files with 4 additions and 2 deletions

View File

@ -286,8 +286,10 @@ class MainDisplay(DisplayWidget):
log.debug(u'preview')
# Wait for the fade to finish before geting the preview.
# Important otherwise preview will have incorrect text if at all !
if self.serviceItem.themedata.display_slideTransition:
while self.frame.evaluateJavaScript(u'show_text_complete()').toString() == u'false':
if self.serviceItem.themedata and \
self.serviceItem.themedata.display_slideTransition:
while self.frame.evaluateJavaScript(u'show_text_complete()') \
.toString() == u'false':
Receiver.send_message(u'openlp_process_events')
# Wait for the webview to update before geting the preview.
# Important otherwise first preview will miss the background !