Skip to content

Commit

Permalink
update 'pressed' also for pushbuttons with 1+ states via onConnectedC…
Browse files Browse the repository at this point in the history
…ontrolChanged
  • Loading branch information
ronso0 committed Jan 21, 2020
1 parent bc9f1f0 commit 17b5c47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/widget/wpushbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ void WPushButton::onConnectedControlChanged(double dParameter, double dValue) {
Q_UNUSED(dParameter);
// Enums are not currently represented using parameter space so it doesn't
// make sense to use the parameter here yet.
if (m_iNoStates == 1) {
m_bPressed = (dValue == 1.0);
}
m_bPressed = (dValue == 1.0);

restyleAndRepaint();
}
Expand Down

0 comments on commit 17b5c47

Please sign in to comment.