Parts dialog shows no part names after parts are generated

• Aug 24, 2014 - 14:53
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Ubunutu Studio 14.04, GIT commit: 57dd451

1) new score for two instruments
2) file / parts
3) new all / ok
4) file / parts again (still viewing score)

Result: the part list appear empty - no part names appears in the dialog. You can still click the empty spaces and see that there *are* parts there, but clicking one does not load any information into the fields at right.


Comments

More information: if you then save and reload the score, then when you open the Parts dialog, the list at left is at least populated with the correct names. However, selecting one of them does not allow you to edit the part in the widgets at right.

This all used to work, and I can guess the change relates to this:

https://github.com/musescore/MuseScore/commit/17d7ac245026b70b887ba0007…

but I'm not understanding it well enough to fix.

What I can see so far is that somewhere around here would be a good place to set the title of the part, by moving the call to nscore()->setName(e->title()) up here:

https://github.com/musescore/MuseScore/blob/17d7ac245026b70b887ba00072f…

That allows the part names to be populated next time you open the dialog, but you still see the same effect as after save/load: the part titles are visible, but clicking them does not actually allow you to edit the part with the controls at right. That's because right here, idx keeps coming back -1:

https://github.com/musescore/MuseScore/blob/17d7ac245026b70b887ba00072f…

I guess somehow the copying of things is not working right, but I don't get how it is supposed to work. Hopefully someone else can take it from here.