Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash when starting with piano open #3684

Merged
merged 1 commit into from
May 21, 2018

Conversation

mirabilos
Copy link
Contributor

key->setHighlighted(false);
key->setSelected(false);
}
for (PianoKeyItem* key : keys)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same loop condition as above; merge it into a single loop? Or is there another reason (other than copy-pasted from changeSelection) to keep it separate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sorry, it was, indeed, copy-pasted.

I initially tried something with setting selection to NULL but ran into C++ not being C, so I did that, at almost 5 o’clock in the night. I was mostly focussed on trying to get the crash fixed in the first place.

If using two separate methods is indeed the way to go, then, yes, this should definitely be merged into one.

@Jojo-Schmitz
Copy link
Contributor

Most probably needs to go to master too

@anatoly-os
Copy link
Contributor

I cannot reproduce the crash on Windows :( Did you realize why currentScore is nullptr in this place on your architecture?

@Jojo-Schmitz
Copy link
Contributor

Neither could I, but the code seems cleaner this way anyhow

@anatoly-os
Copy link
Contributor

@Jojo-Schmitz I agree.

@anatoly-os anatoly-os merged commit 2fd692c into musescore:2.3 May 21, 2018
anatoly-os added a commit that referenced this pull request May 21, 2018
fix crash when starting with piano open
Manually merged from 2.3, see #3684
@mirabilos
Copy link
Contributor Author

mirabilos commented May 22, 2018 via email

@mirabilos mirabilos deleted the fix-debian-898757 branch June 20, 2018 17:11
blackears pushed a commit to blackears/MuseScore that referenced this pull request Jul 4, 2018
fix crash when starting with piano open
Manually merged from 2.3, see musescore#3684
abhisit pushed a commit to abhisit/MuseScore that referenced this pull request Aug 15, 2018
fix crash when starting with piano open
Manually merged from 2.3, see musescore#3684
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.

4 participants