fix exit code

This commit is contained in:
Tim Bentley 2011-12-04 16:19:45 +00:00
parent 456d7ec68e
commit f751ae092a

View File

@ -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)