diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-03-04 19:29:16 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-03-04 19:29:16 +0000 |
| commit | 23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c (patch) | |
| tree | b0829b32fddcc8b9bf36c202e5af51272de9f7b4 /src/qmmpui | |
| parent | 25152c9e8426e1c9ee2ea7dd151e41a325c70bfa (diff) | |
| download | qmmp-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.cpp | 4 |
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(); } |
