Skip to content

Parallel sets: fix set name key conversion on set switch - #1361

Merged
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:parallelsets-fix2
Aug 3, 2026
Merged

Parallel sets: fix set name key conversion on set switch#1361
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:parallelsets-fix2

Conversation

@LAfricain

Copy link
Copy Markdown
Contributor

This PR contains a single fix following #1356 (already merged).

Problem

When switching between parallel sets via the ComboBox in Preferences,
the displayed name (with spaces, e.g. "No OSHB") was being stored
directly in settings.xml as parallel_set_current instead of the
XML key form (with underscores, e.g. No_OSHB). This caused a
mismatch on next startup since the key lookup would fail.

Fix

Apply name_to_key() before storing parallel_set_current and before
calling get_parallel_set() when switching sets.

Note

PR #1357 is superseded by this PR. The first commit
of #1357 (XML-invalid character fix) was already merged as #1356 by
you.

When switching sets via the ComboBox, the displayed name (with spaces)
was being stored directly in settings.xml instead of the XML key
(with underscores), causing a mismatch on next startup.

Apply name_to_key() before storing parallel_set_current and before
calling get_parallel_set() when switching sets.
@karlkleinpaste
karlkleinpaste merged commit 12c9465 into crosswire:master Aug 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants