Skip to content

Commit

Permalink
Compact an if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgregorius committed Apr 5, 2024
1 parent 701af7c commit 1c8ca85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gui/instrument/EnvelopeGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ void EnvelopeGraph::modelChanged()

void EnvelopeGraph::mousePressEvent(QMouseEvent* me)
{
if (me->button() == Qt::LeftButton)
{
toggleAmountModel();
}
if (me->button() == Qt::LeftButton) { toggleAmountModel(); }
}

void EnvelopeGraph::paintEvent(QPaintEvent*)
Expand Down

0 comments on commit 1c8ca85

Please sign in to comment.