diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-10-17 17:53:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-10-17 17:53:04 +0000 |
| commit | b73fba01452d31c6bf13ea6c4662dfc41a47116a (patch) | |
| tree | 05ca5ba6c20021fb79b6e98277ff7d13cb75c1ac | |
| parent | a129eb971aac6f9bf82925a8a985c59c64066cf0 (diff) | |
| download | qmmp-b73fba01452d31c6bf13ea6c4662dfc41a47116a.tar.gz qmmp-b73fba01452d31c6bf13ea6c4662dfc41a47116a.tar.bz2 qmmp-b73fba01452d31c6bf13ea6c4662dfc41a47116a.zip | |
qsui: fixed time indicator
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5696 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/plugins/Ui/qsui/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Ui/qsui/mainwindow.cpp b/src/plugins/Ui/qsui/mainwindow.cpp index 1dab3d6e1..80f2202f3 100644 --- a/src/plugins/Ui/qsui/mainwindow.cpp +++ b/src/plugins/Ui/qsui/mainwindow.cpp @@ -196,7 +196,9 @@ void MainWindow::updatePosition(qint64 pos) m_slider->setValue(pos/1000); QString text = MetaDataFormatter::formatLength(pos/1000); - if(m_core->totalTime() > 0) + if(text.isEmpty()) + text = "0:00"; + if(m_core->totalTime() > 1000) { text.append("/"); text.append(MetaDataFormatter::formatLength(m_core->totalTime()/1000)); |
