Crash when sending an alert while the initial screen is displayed.

Bug #883975 reported by Andreas Preikschat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Low
Tim Bentley

Bug Description

Hello,

trunk r1788

1) Start OpenLP
2) Hide the screen
3) Press F7 to display an alert message

Result:
Traceback (most recent call last):
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/alerts/forms/alertform.py", line 84, in onDisplayClicked
    self.triggerAlert(unicode(self.alertTextEdit.text()))
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/alerts/forms/alertform.py", line 198, in triggerAlert
    self.plugin.alertsmanager.displayAlert(text)
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/alerts/lib/alertsmanager.py", line 77, in displayAlert
    self.generateAlert()
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/alerts/lib/alertsmanager.py", line 88, in generateAlert
    self.parent().liveController.display.alert(text, alertTab.location)
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/ui/maindisplay.py", line 242, in alert
    alert_height = int(height.toString())
ValueError: invalid literal for int() with base 10: ''

The reason is that at the time of building the html for the initial screen the plugins are not loaded OR the css/html is just not considered.

Tags: regression

Related branches

Tim Bentley (trb143)
Changed in openlp:
status: New → Confirmed
importance: Undecided → Low
Tim Bentley (trb143)
Changed in openlp:
assignee: nobody → Tim Bentley (trb143)
status: Confirmed → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.