remove else from toolbar.py

This commit is contained in:
rimach 2010-05-05 19:17:00 +02:00
parent 4661756d68
commit 66ec680e4e
1 changed files with 1 additions and 4 deletions

View File

@ -120,11 +120,8 @@ class OpenLPToolbar(QtGui.QToolBar):
try:
if self.icons[title]:
return self.icons[title]
else:
log.error(u'getIconFromTitle - no icon for %s' % title)
return QtGui.QIcon()
except:
log.exception(u'getIconFromTitle - title %s not found' % title)
log.exception(u'getIconFromTitle - no icon for %s' % title)
return QtGui.QIcon()
def makeWidgetsInvisible(self, widgets):