Style for part not persistent across sessions

• Feb 18, 2014 - 03:45
S4 - Minor

Windows 7, GIT commit: b23746f

1) edit / preferences / score
2) set "style for part"
3) close MuseScore
4) restart
5) edit / preferences / score

Result: "style for part" is blank
Expected result: value set last session is remembered

I have often mentioned I think "Style for parts" should be a score style setting (not just the name of the style file, but the actual style setting). However, if it *is* to remain just a preference, it needs to be persistent like other preferences. Currently, if you set this, it is not remembered across sessions.

I see in PreferenceDialog::Apply that this preference is saved using QSettings, whereas other preferences are saved in the "Preferences" structure. Is there a reason for this? At least on my system, QSettings doesn't seem to be working.


Aha! The "Style for part" setting actually *is* persistent. The preferences dialog is just failing to pick up the value, so it looks like it isn't set when it really is.

It seems I've actually had a "Style for part" set for a while now, unbeknownst to me because the dialog isn't reflecting reality.

No doubt this will also explains some of the other strange style-related behaviors I've been reporting lately, but at least some of that is probably real. I'm investigating, and plan to submit a PR to fix what I can.