From 61b85f15bcaaa8098d8812ccdea02dff7db0ad5c Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sun, 30 Jun 2019 16:28:38 -0700 Subject: [PATCH] Fix a bug when cleaning up thumbnails where all presentation controllers, whether enabled or not, would be cycled through. --- openlp/plugins/presentations/lib/mediaitem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/presentations/lib/mediaitem.py b/openlp/plugins/presentations/lib/mediaitem.py index 6bc2496a2..f4015a295 100644 --- a/openlp/plugins/presentations/lib/mediaitem.py +++ b/openlp/plugins/presentations/lib/mediaitem.py @@ -246,6 +246,9 @@ class PresentationMediaItem(MediaManagerItem): :rtype: None """ for cidx in self.controllers: + if not self.controllers[cidx].enabled(): + # skip presentation controllers that are not enabled + continue file_ext = file_path.suffix[1:] if file_ext in self.controllers[cidx].supports or file_ext in self.controllers[cidx].also_supports: doc = self.controllers[cidx].add_document(file_path)