From b7e3a33c4ac33fc815be7839588ac6657184aaa5 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Wed, 12 Nov 2014 22:18:57 +0000 Subject: [PATCH] Mark a song edited from preview as coming from plugin. Fixes bug 1382672 Fixes: https://launchpad.net/bugs/1382672 --- openlp/plugins/songs/lib/mediaitem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/songs/lib/mediaitem.py b/openlp/plugins/songs/lib/mediaitem.py index 33c4f2e53..18d964115 100644 --- a/openlp/plugins/songs/lib/mediaitem.py +++ b/openlp/plugins/songs/lib/mediaitem.py @@ -339,6 +339,9 @@ class SongMediaItem(MediaManagerItem): self.remote_song = -1 self.remote_triggered = None if item: + if preview: + # A song can only be edited if it comes from plugin, so we set it again for the new item. + item.from_plugin = True return item return None