aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-03-04 19:29:16 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-03-04 19:29:16 +0000
commit23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c (patch)
treeb0829b32fddcc8b9bf36c202e5af51272de9f7b4 /src/qmmpui
parent25152c9e8426e1c9ee2ea7dd151e41a325c70bfa (diff)
downloadqmmp-23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c.tar.gz
qmmp-23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c.tar.bz2
qmmp-23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c.zip
do not show "0:00" in playlist
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2094 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/playlistmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 015a0548e..b015e54bb 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright(C) 2006-2010 by Ilya Kotov *
+ * Copyright(C) 2006-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -285,6 +285,8 @@ QStringList PlayListModel::getTimes(int b,int l)
else
str += QString("%1").arg(d%3600/60);
str += QString(":%1").arg(d%60, 2, 10, QChar('0'));
+ if(!d)
+ str.clear();
m_times << str;
str.clear();
}