forked from openlp/openlp
Fix Icons on toolbar
This commit is contained in:
parent
156a70208b
commit
250fd4e41b
@ -106,7 +106,8 @@ class OpenLPToolbar(QtGui.QToolBar):
|
|||||||
``title``
|
``title``
|
||||||
The title of the icon to search for.
|
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]
|
return self.icons[title]
|
||||||
else:
|
else:
|
||||||
self.log.error(u'getIconFromTitle - no icon for %s' % title)
|
self.log.error(u'getIconFromTitle - no icon for %s' % title)
|
||||||
|
Loading…
Reference in New Issue
Block a user