forked from openlp/openlp
fix exit code
This commit is contained in:
parent
456d7ec68e
commit
f751ae092a
@ -265,7 +265,9 @@ class SongsPlugin(Plugin):
|
||||
"""
|
||||
log.info(u'Songs Finalising')
|
||||
# Remove temporary songs
|
||||
self.manager.delete_all_objects(Song, Song.temporary == True)
|
||||
songs = self.manager.get_all_objects(Song, Song.temporary == True)
|
||||
for song in songs:
|
||||
self.manager.delete_object(Song, song.id)
|
||||
# Clean up files and connections
|
||||
self.manager.finalise()
|
||||
self.songImportItem.setVisible(False)
|
||||
|
Loading…
Reference in New Issue
Block a user