Commit 34b57e16 authored by Scott Wheeler's avatar Scott Wheeler

Use player() rather than referring to m_player directly.

svn path=/trunk/kdemultimedia/juk/; revision=292785
parent 2ca70609
......@@ -266,7 +266,7 @@ void PlayerManager::back()
void PlayerManager::volumeUp()
{
if(!m_player || !m_sliderAction)
if(!player() || !m_sliderAction)
return;
int volume = m_sliderAction->volumeSlider()->value() +
......@@ -278,7 +278,7 @@ void PlayerManager::volumeUp()
void PlayerManager::volumeDown()
{
if(!m_player || !m_sliderAction)
if(!player() || !m_sliderAction)
return;
int volume = m_sliderAction->volumeSlider()->value() -
......@@ -290,7 +290,7 @@ void PlayerManager::volumeDown()
void PlayerManager::mute()
{
if(!m_player || !m_sliderAction)
if(!player() || !m_sliderAction)
return;
slotSetVolume(m_muted ? m_sliderAction->volumeSlider()->value() : 0);
......@@ -358,7 +358,7 @@ void PlayerManager::slotUpdateTime(int position)
return;
float positionFraction = float(position) / m_sliderAction->trackPositionSlider()->maxValue();
float totalTime = float(m_player->totalTime());
float totalTime = float(player()->totalTime());
long seekTime = long(positionFraction * totalTime + 0.5); // "+0.5" for rounding
m_statusLabel->setItemCurrentTime(seekTime);
......
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