forked from openlp/openlp
fix for windows
This commit is contained in:
parent
5a7aa2fb9f
commit
f753070f53
@ -139,7 +139,8 @@ class CustomMediaItem(MediaManagerItem):
|
|||||||
self.listView.clear()
|
self.listView.clear()
|
||||||
# Sort the customs by its title considering language specific
|
# Sort the customs by its title considering language specific
|
||||||
# characters.
|
# characters.
|
||||||
custom_slides.sort(cmp=locale.strcoll, key=operator.attrgetter('title'))
|
custom_slides.sort(
|
||||||
|
cmp=locale.strcoll, key=operator.attrgetter('title').lower())
|
||||||
for custom_slide in custom_slides:
|
for custom_slide in custom_slides:
|
||||||
custom_name = QtGui.QListWidgetItem(custom_slide.title)
|
custom_name = QtGui.QListWidgetItem(custom_slide.title)
|
||||||
custom_name.setData(
|
custom_name.setData(
|
||||||
|
@ -231,7 +231,8 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
log.debug(u'display results Song')
|
log.debug(u'display results Song')
|
||||||
self.listView.clear()
|
self.listView.clear()
|
||||||
# Sort the songs by its title considering language specific characters.
|
# Sort the songs by its title considering language specific characters.
|
||||||
searchresults.sort(cmp=locale.strcoll, key=operator.attrgetter('title'))
|
searchresults.sort(
|
||||||
|
cmp=locale.strcoll, key=operator.attrgetter('title').lower())
|
||||||
for song in searchresults:
|
for song in searchresults:
|
||||||
author_list = [author.display_name for author in song.authors]
|
author_list = [author.display_name for author in song.authors]
|
||||||
song_title = unicode(song.title)
|
song_title = unicode(song.title)
|
||||||
|
Loading…
Reference in New Issue
Block a user