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

bzr-revno: 1885
Fixes: https://launchpad.net/bugs/902115
This commit is contained in:
Meinert Jordan 2012-02-26 17:35:22 +02:00 committed by Raoul Snyman
commit 9dadcb9217
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''