From b73fba01452d31c6bf13ea6c4662dfc41a47116a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 17 Oct 2015 17:53:04 +0000 Subject: qsui: fixed time indicator git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5696 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/qsui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3-13-gbd6f