Merge lp:~j-corwin/openlp/bug-1094198 into lp:openlp/2.0
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Bentley | ||||
Approved revision: | 2124 | ||||
Merged at revision: | 2125 | ||||
Proposed branch: | lp:~j-corwin/openlp/bug-1094198 | ||||
Merge into: | lp:openlp/2.0 | ||||
Diff against target: |
51 lines (+18/-12) 1 file modified
openlp/core/ui/mainwindow.py (+18/-12) |
||||
To merge this branch: | bzr merge lp:~j-corwin/openlp/bug-1094198 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raoul Snyman | Approve | ||
Tim Bentley | Approve | ||
Review via email: mp+141469@code.launchpad.net |
Description of the change
** 2.0 **
Attempt to successfully import the settings we can now export.
* QSettings exports the 'general' group as '%General' but appears in some circumstances (Linux?) to struggle to import this again. Try and compensate.
* If you run 2.1, even if just the once, it'll create a [players] settings group. If you later go back to 2.0 it'll load this group (even if it doesn't use it) and so it'll be exported. However the import considers the group invalid so fails. I've therefore changed the import to be more forgiving and just ignore unknown groups. A basic sanity test is done earlier instead. (Using the same string to avoid translation problems)
Tim please can you see if this solves your problem? Ta.
16 + 'The file you selected does appear to be a valid OpenLP '
17 + 'settings file.\n\n'
Is this really necessary? Surely if it gets to the stage of parsing sections, then it is a valid OpenLP settings file? Or are you confused and need to rewrite that IF statement?