all lower() for theme sorting to consider Windows

This commit is contained in:
M2j 2011-05-25 20:47:13 +02:00
parent 7a1a83a98a
commit 6f0bdad784
1 changed files with 4 additions and 1 deletions

View File

@ -463,7 +463,10 @@ class ThemeManager(QtGui.QWidget):
QtCore.QVariant(theme.theme_name))
self.configUpdated()
files = SettingsManager.get_files(self.settingsSection, u'.png')
files.sort(key=lambda filename: unicode(filename), cmp=locale.strcoll)
# Sort the themes by its name considering language specific characters.
# lower() is needed for windows!
files.sort(key=lambda filename: unicode(filename).lower(),
cmp=locale.strcoll)
# now process the file list of png files
for name in files:
# check to see file is in theme root directory