Fix Icons on toolbar

This commit is contained in:
Tim Bentley 2009-12-02 08:55:15 +00:00
parent 156a70208b
commit 250fd4e41b

View File

@ -106,7 +106,8 @@ class OpenLPToolbar(QtGui.QToolBar):
``title``
The title of the icon to search for.
"""
if self.icons.has_key(title):
title = QtCore.QString(title)
if self.icons[title]:
return self.icons[title]
else:
self.log.error(u'getIconFromTitle - no icon for %s' % title)