Mark a custom slide edited from preview as coming from plugin. Fixes bug 1439671.

Fixes: https://launchpad.net/bugs/1439671
This commit is contained in:
Tomas Groth 2015-04-02 21:49:19 +01:00
parent 589bc98bec
commit da6f88a7ae

View File

@ -158,6 +158,10 @@ class CustomMediaItem(MediaManagerItem):
self.remote_triggered = None self.remote_triggered = None
self.remote_custom = 1 self.remote_custom = 1
if item: if item:
if preview:
# A custom slide 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 item
return None return None