diff options
Diffstat (limited to 'sigmodr/widgets/SoundUI.cpp')
| -rw-r--r-- | sigmodr/widgets/SoundUI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"))); } |
