Fix bug in volume slider when vol < 10
This commit is contained in:
parent
1d6a42a3aa
commit
c6493b3d52
1 changed files with 7 additions and 3 deletions
|
@ -317,9 +317,13 @@ void AudioMotor::parse(QString message)
|
|||
emit loadbang();
|
||||
break;
|
||||
case 9:
|
||||
if (list.at(i).at(2).digitValue() == 0)
|
||||
emit (volChanged(list.at(i).at(4).digitValue(), ( ( list.at(i).at(6).digitValue() * 10 ) + list.at(i).at(7).digitValue() ) ) );
|
||||
break;
|
||||
if (list.at(i).at(2).digitValue() == 0) {
|
||||
if (list.at(i).at(7).isDigit() )
|
||||
emit (volChanged(list.at(i).at(4).digitValue(), ( ( list.at(i).at(6).digitValue() * 10 ) + list.at(i).at(7).digitValue() ) ) );
|
||||
else
|
||||
emit (volChanged(list.at(i).at(4).digitValue(), ( ( list.at(i).at(6).digitValue() ) ) ) );
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
|
|
Loading…
Add table
Reference in a new issue