From f751ae092a566cd783466c334c4fd8bb68eaa406 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 4 Dec 2011 16:19:45 +0000 Subject: [PATCH] fix exit code --- openlp/plugins/songs/songsplugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/songsplugin.py b/openlp/plugins/songs/songsplugin.py index 39e1360fa..4f0e9d77a 100644 --- a/openlp/plugins/songs/songsplugin.py +++ b/openlp/plugins/songs/songsplugin.py @@ -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)