diff --git a/openlp/core/lib/toolbar.py b/openlp/core/lib/toolbar.py index 5cc14f89b..d5d91ca6d 100644 --- a/openlp/core/lib/toolbar.py +++ b/openlp/core/lib/toolbar.py @@ -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)