Check for Qt version before calling QtCore.QLocale().createSeparatedList

This commit is contained in:
M2j 2012-02-26 16:15:00 +01:00
parent f9ba07f48d
commit ee3da31682
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ def create_separated_list(stringlist):
``stringlist``
List of unicode strings
"""
if Qt.PYQT_VERSION_STR >= u'4.9':
if Qt.PYQT_VERSION_STR >= u'4.9' and Qt.qVersion() >= u'4.8':
return unicode(QtCore.QLocale().createSeparatedList(stringlist))
if not stringlist:
return u''