Couple of cleanups

This commit is contained in:
Jon Tibble 2011-01-22 17:50:32 +00:00
parent 3d9a5203a5
commit 7fc5bea107
2 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,8 @@ class AlertsPlugin(Plugin):
"""
Return the settings tab for the Alerts plugin
"""
return AlertsTab(self, self.visible_name[u'title'])
self.alertsTab = AlertsTab(self, self.visible_name[u'title'])
return self.alertsTab
def addToolsMenuItem(self, tools_menu):
"""

View File

@ -171,11 +171,11 @@ class ImpressController(PresentationController):
desktop = self.get_com_desktop()
#Sometimes we get a failure and desktop is None
if not desktop:
log.exception(u'Failed to terminate OpenOffice')
log.exception(u'Failed to find an OpenOffice desktop to terminate')
return
docs = desktop.getComponents()
if docs.hasElements():
log.debug(u'OpenOffice not terminated')
log.debug(u'OpenOffice not terminated as docs are still open')
else:
try:
desktop.terminate()