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