diff options
| -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)); |
