diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 00:45:59 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 00:45:59 -0500 |
| commit | f03568a7f9333d4e7ccb20c825a5b05b398bbfec (patch) | |
| tree | 97668be92509d1a776335ccd5fb1dd50a7d816e4 /sigmodr/widgets/SoundUI.cpp | |
| parent | 34cada2320de22d17b84b467c74b066eca818a87 (diff) | |
| download | sigen-f03568a7f9333d4e7ccb20c825a5b05b398bbfec.tar.gz sigen-f03568a7f9333d4e7ccb20c825a5b05b398bbfec.tar.xz sigen-f03568a7f9333d4e7ccb20c825a5b05b398bbfec.zip | |
Fixed the "00:00:00 / " initial state of the sound widget
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"))); } |
