From 23865e22ed85f45ebb7c9dbe330e14dd0d80ce3c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Mar 2011 19:29:16 +0000 Subject: 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 --- src/qmmpui/playlistmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/qmmpui') 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(); } -- cgit v1.2.3-13-gbd6f