From de58d1c60793ce3b1af740caf28cf49621cdad38 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Sat, 21 Feb 2015 13:12:49 +0000 Subject: [PATCH] Do not display alert on a single screen when 'Display on a single screen' is not checked. Fixes bug 1423956. --- openlp/plugins/alerts/lib/alertsmanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/alerts/lib/alertsmanager.py b/openlp/plugins/alerts/lib/alertsmanager.py index be3fff015..2e3b46f9e 100644 --- a/openlp/plugins/alerts/lib/alertsmanager.py +++ b/openlp/plugins/alerts/lib/alertsmanager.py @@ -26,7 +26,7 @@ displaying of alerts. from PyQt4 import QtCore -from openlp.core.common import OpenLPMixin, RegistryMixin, Registry, RegistryProperties, translate +from openlp.core.common import OpenLPMixin, RegistryMixin, Registry, RegistryProperties, Settings, translate class AlertsManager(OpenLPMixin, RegistryMixin, QtCore.QObject, RegistryProperties): @@ -70,7 +70,8 @@ class AlertsManager(OpenLPMixin, RegistryMixin, QtCore.QObject, RegistryProperti """ Format and request the Alert and start the timer. """ - if not self.alert_list: + if not self.alert_list or (self.live_controller.display.screens.display_count == 1 + and not Settings().value('core/display on monitor')): return text = self.alert_list.pop(0) alert_tab = self.parent().settings_tab