Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Mar 1, 2025
1 parent 6d53b9c commit 57ec5ad
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/notation/view/percussionpanel/percussionpanelmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,10 @@ void PercussionPanelModel::setUpConnections()
});
}

if (configuration()) {
configuration()->percussionPanelUseNotationPreviewChanged().onNotify(this, [this]() {
const bool useNotationPreview = configuration()->percussionPanelUseNotationPreview();
emit useNotationPreviewChanged(useNotationPreview);
});
}
configuration()->percussionPanelUseNotationPreviewChanged().onNotify(this, [this]() {
const bool useNotationPreview = configuration()->percussionPanelUseNotationPreview();
emit useNotationPreviewChanged(useNotationPreview);
});
}

void PercussionPanelModel::setDrumset(engraving::Drumset* drumset)
Expand Down

0 comments on commit 57ec5ad

Please sign in to comment.