forked from openlp/openlp
partial fix bug #1000729 'Support more song fields in the search' - fixed sort for topic search - by song
Fixes: https://launchpad.net/bugs/1000729
This commit is contained in:
parent
e87d18bd67
commit
da4eac9961
@ -301,7 +301,8 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
log.debug('display results Topic')
|
log.debug('display results Topic')
|
||||||
self.list_view.clear()
|
self.list_view.clear()
|
||||||
for topic in search_results:
|
for topic in search_results:
|
||||||
for song in topic.songs:
|
songs = sorted(topic.songs, key=lambda song: song.sort_key)
|
||||||
|
for song in songs:
|
||||||
# Do not display temporary songs
|
# Do not display temporary songs
|
||||||
if song.temporary:
|
if song.temporary:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user