Crash when exporting settings

Bug #1387278 reported by Jonathan Corwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Low
Tomas Groth

Bug Description

O/S: Windows 7
Version: trunk 2.1r2434

File -> Export -> Settings.
Choose location and Enter a file name.
Gives crash dialog:
Traceback (most recent call last):
  File "C:\Users\Jonathan\Documents\projects\openlp\trunk\openlp\core\ui\mainwindow.py", line 981, in on_settings_export_item_clicked
    key_value = settings.value(section_key)
  File "C:\Users\Jonathan\Documents\projects\openlp\trunk\openlp\core\common\settings.py", line 437, in value
    default_value = Settings.__default_settings__[key]
KeyError: 'custom/custom/display footer'

Related branches

Revision history for this message
Tomas Groth (tomasgroth) wrote :

I can't reproduce this on linux, maybe it's a windows only problem...

Revision history for this message
Tim Bentley (trb143) wrote :

custom/custom/display footer looks interesting. Is't there an extra custom

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

Looking in the registry I have most of the settings directly under 'custom' where they should be, but I do also have display footer duplicated under 'custom/custom'. Bear in mind that my PC has probably had most OpenLP's installed on it, so I guess this setting crept in temporarily at one point, even if no longer valid. So if I have it, then others may as well.
(Is there some code that cleans up old redundant/invalid settings?)

However I did just delete the settings from the registry, started again, and the settings exported fine.

Tomas Groth (tomasgroth)
Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
status: New → In Progress
Phill (phill-ridout)
Changed in openlp:
importance: Undecided → Low
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.1.2
status: In Progress → 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.