From 3e1ba89a41d7361461282e07150805d0e1664b45 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 25 Feb 2012 17:44:21 +0000 Subject: [PATCH] Fix locale test --- openlp/core/lib/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index 2df8f23c2..650ae911d 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -328,9 +328,8 @@ def create_separated_list(stringlist): ``stringlist`` List of unicode strings """ - #Not available via pyqt yet so will not work! - #if Qt.qVersion() >= u'4.8': - # return unicode(QtCore.QLocale.createSeparatedList(stringlist)) + if Qt.PYQT_VERSION_STR >= u'4.9': + return unicode(QtCore.QLocale.createSeparatedList(stringlist)) if not stringlist: return u'' elif len(stringlist) == 1: