From 250fd4e41bdff9ec0ae5400adb7541b8c57be2d8 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Wed, 2 Dec 2009 08:55:15 +0000 Subject: [PATCH] Fix Icons on toolbar --- openlp/core/lib/toolbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)