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 #275834: crash when add slur to score #3920

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

mattmcclinch
Copy link
Contributor

@anatoly-os
Copy link
Contributor

@mattmcclinch could you please actualise the commit description, because now it doesn't fix the crash mentioned in the issue description, but prevents different kind of crash.

@@ -540,6 +541,9 @@ void ScoreView::dropEvent(QDropEvent* event)
}
event->acceptProposedAction();
break;
case ElementType::SLUR:
Copy link
Contributor

Choose a reason for hiding this comment

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

What about some other element types? Don't they need the same clearing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I know, SLUR is the only ElementType that will put the ScoreView into ViewState::EDIT upon drag/drop. But your point is well taken, and I have found a better way to do this.

@anatoly-os anatoly-os merged commit ec64d90 into musescore:master Sep 5, 2018
@mattmcclinch mattmcclinch deleted the 275834-drop-slur branch September 5, 2018 13:07
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