Fix a crash on click on key signature in new file wizard if there are no scores opened
This commit is contained in:
parent
59594beec6
commit
5afce4b8ba
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ void Palette::mousePressEvent(QMouseEvent* ev)
|
|||
// Take out of edit mode to prevent crashes when adding
|
||||
// elements from palette
|
||||
ScoreView* cv = mscore->currentScoreView();
|
||||
if (cv->editMode())
|
||||
if (cv && cv->editMode())
|
||||
cv->changeState(ViewState::NORMAL);
|
||||
|
||||
if (dragIdx == -1)
|
||||
|
|
Loading…
Reference in a new issue