diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index c45e6cd47..169faa5a0 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -252,6 +252,7 @@ class MainDisplay(DisplayWidget): self.size().height()) self.webView.setGeometry(0, 0, self.size().width(), self.size().height()) + self.alertText.setTextWidth(self.size().width()) #Build a custom splash screen self.initialFrame = QtGui.QImage( self.screen[u'size'].width(), @@ -322,7 +323,6 @@ class MainDisplay(DisplayWidget): def setupAlert(self): self.alertText = QtGui.QGraphicsTextItem() - self.alertText.setTextWidth(self.size().width()) self.alertText.setZValue(8) self.scene.addItem(self.alertText) diff --git a/openlp/plugins/alerts/alertsplugin.py b/openlp/plugins/alerts/alertsplugin.py index 45f8ebfc4..6879d3475 100644 --- a/openlp/plugins/alerts/alertsplugin.py +++ b/openlp/plugins/alerts/alertsplugin.py @@ -88,8 +88,7 @@ class AlertsPlugin(Plugin): def toggleAlertsState(self): self.alertsActive = not self.alertsActive - QtCore.QSettings().setValue( - self.settingsSection + u'/active', + QtCore.QSettings().setValue(self.settingsSection + u'/active', QtCore.QVariant(self.alertsActive)) def onAlertsTrigger(self):