forked from openlp/openlp
Raoul's kicks
This commit is contained in:
parent
0ddeef9d8f
commit
4c1fe14fd2
@ -153,9 +153,7 @@ class ImpressController(PresentationController):
|
|||||||
desktop = None
|
desktop = None
|
||||||
try:
|
try:
|
||||||
desktop = self.manager.createInstance(u'com.sun.star.frame.Desktop')
|
desktop = self.manager.createInstance(u'com.sun.star.frame.Desktop')
|
||||||
except AttributeError:
|
except (AttributeError, pywintypes.com_error):
|
||||||
log.warn(u'Failure to find desktop - Impress may have closed')
|
|
||||||
except pywintypes.com_error:
|
|
||||||
log.warn(u'Failure to find desktop - Impress may have closed')
|
log.warn(u'Failure to find desktop - Impress may have closed')
|
||||||
return desktop if desktop else None
|
return desktop if desktop else None
|
||||||
|
|
||||||
@ -363,9 +361,7 @@ class ImpressDocument(PresentationDocument):
|
|||||||
log.debug(u'is active OpenOffice')
|
log.debug(u'is active OpenOffice')
|
||||||
if not self.is_loaded():
|
if not self.is_loaded():
|
||||||
return False
|
return False
|
||||||
if not self.control:
|
return self.control.isRunning() if self.control else False
|
||||||
return False
|
|
||||||
return self.control.isRunning()
|
|
||||||
|
|
||||||
def unblank_screen(self):
|
def unblank_screen(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user