From fec061782b1373147db0e7c02d6ba28f80b1e6ab Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 3 Sep 2015 20:21:43 +0100 Subject: [PATCH] Make sure presentations is closed correctly. Fixes bug 1490996. Fixes: https://launchpad.net/bugs/1490996 --- openlp/core/ui/slidecontroller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/slidecontroller.py b/openlp/core/ui/slidecontroller.py index 8638b8e9c..59ca286a7 100644 --- a/openlp/core/ui/slidecontroller.py +++ b/openlp/core/ui/slidecontroller.py @@ -902,7 +902,8 @@ class SlideController(DisplayController, RegistryProperties): # This avoids the service theme/desktop flashing on screen # However opening a new item of the same type will automatically # close the previous, so make sure we don't close the new one. - if old_item.is_command() and not service_item.is_command(): + if old_item.is_command() and not service_item.is_command() or \ + old_item.is_command() and not old_item.is_media() and service_item.is_media(): Registry().execute('%s_stop' % old_item.name.lower(), [old_item, self.is_live]) if old_item.is_media() and not service_item.is_media(): self.on_media_close()