None tests

This commit is contained in:
Jon Tibble 2010-02-27 00:11:26 +00:00
parent 2185f4e842
commit 80d54dc1be
2 changed files with 4 additions and 4 deletions

View File

@ -694,7 +694,7 @@ class ServiceManager(QtGui.QWidget):
if plugin == u'ServiceManager':
startpos, startCount = self.findServiceItem()
item = self.ServiceManagerList.itemAt(event.pos())
if item == None:
if item is None:
endpos = len(self.serviceItems)
else:
parentitem = item.parent()

View File

@ -150,7 +150,7 @@ class PowerpointController(PresentationController):
Triggerent by new object being added to SlideController orOpenLP
being shut down
"""
if self.presentation == None:
if self.presentation is None:
return
try:
self.presentation.Close()
@ -165,9 +165,9 @@ class PowerpointController(PresentationController):
if not self.is_loaded():
return False
try:
if self.presentation.SlideShowWindow == None:
if self.presentation.SlideShowWindow is None:
return False
if self.presentation.SlideShowWindow.View == None:
if self.presentation.SlideShowWindow.View is None:
return False
except:
return False