From f03568a7f9333d4e7ccb20c825a5b05b398bbfec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Feb 2009 00:45:59 -0500 Subject: Fixed the "00:00:00 / " initial state of the sound widget --- sigmodr/widgets/SoundUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sigmodr/widgets/SoundUI.cpp') diff --git a/sigmodr/widgets/SoundUI.cpp b/sigmodr/widgets/SoundUI.cpp index 9fb8c9b3..14d20a8a 100644 --- a/sigmodr/widgets/SoundUI.cpp +++ b/sigmodr/widgets/SoundUI.cpp @@ -178,7 +178,7 @@ void SoundUI::resetAudioData() void SoundUI::tick(qint64 time) { QTime currentTime(0, (time / 60000) % 60, (time / 1000) % 60, time % 1000); - qint64 total = m_media->totalTime(); + qint64 total = ((m_media->state() == Phonon::BufferingState) ? 0 : m_media->totalTime()); QTime totalTime(0, (total / 60000) % 60, (total / 1000) % 60, total % 1000); ui_time->setText(QString("%1 / %2").arg(currentTime.toString("mm:ss.zzz")).arg(totalTime.toString("mm:ss.zzz"))); } -- cgit