This commit is contained in:
John Maguire 2010-03-24 22:31:34 +00:00
parent ca774badc4
commit a64e5fb17e
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ void Player::EngineStateChanged(Engine::State state) {
}
void Player::SetVolume(int value) {
int volume = qMin(100, qMax(0, value));
int volume = qBound(0, value, 100);
settings_.setValue("volume", volume);
engine_->setVolume(volume);
emit VolumeChanged(volume);