Commit 441ac592 authored by Scott Wheeler's avatar Scott Wheeler

The cast here was bogus and caused this method not to work.

Pointed out by Matthias Kretz.

svn path=/trunk/kdemultimedia/juk/; revision=280274
parent d3b1f0f2
......@@ -80,7 +80,9 @@ void JuK::setVolume(float volume)
if(m_sliderAction->volumeSlider()->maxValue() > 0 &&
volume >= 0 && m_sliderAction->volumeSlider()->maxValue() >= volume)
{
slotSetVolume(int(volume / 100) * m_sliderAction->volumeSlider()->maxValue());
int v = int(volume / 100 * m_sliderAction->volumeSlider()->maxValue());
slotSetVolume(v);
m_sliderAction->volumeSlider()->setValue(v);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment