Fix crash on blank of single display screen

Fixes: https://launchpad.net/bugs/716843
This commit is contained in:
Tim Bentley 2011-02-11 17:28:14 +00:00
parent 4422d824bb
commit 4a4f7d7ef4

View File

@ -876,7 +876,7 @@ class SlideController(QtGui.QWidget):
using *Blank to Theme*.
"""
log.debug(u'updatePreview %s ' % self.screens.current[u'primary'])
if not self.screens.current[u'primary'] and \
if not self.screens.current[u'primary'] and self.serviceItem and \
self.serviceItem.is_capable(ItemCapabilities.ProvidesOwnDisplay):
# Grab now, but try again in a couple of seconds if slide change
# is slow