OTHER: Fix timedisplay for playtimes >= 100 minutes

If the playtime is bigger or equal to 100 minutes, timedisplay shows
hours and minutes now, if playtime is bigger or equal to 100 hours,
timedisplay gives up and only showes '--:--'
This commit is contained in:
Thomas Frauendorfer 2008-05-18 14:04:05 +02:00
parent fb264e8d0e
commit 18bcad6f99
4 changed files with 44 additions and 14 deletions

View file

@ -167,10 +167,20 @@ MainDisplay::setStatus (Xmms::Playback::Status status)
m_playstatus->setStatus (status);
if (status == Xmms::Playback::STOPPED) {
m_time->setTime(0);
//m_time->setTime(0);
m_time->hide ();
m_kbps->hide ();
m_khz->hide ();
m_posbar->setValue (0);
m_posbar->hide ();
m_stereo->setStereoMono (false, false);
} else if (status == Xmms::Playback::PLAYING) {
m_time->show ();
m_kbps->show ();
m_khz->show ();
// m_posbar will be shown when fetching metadata
// m_stereo is set there too
}
}