diff options
| -rw-r--r-- | src/qmmpui/metadataformatter.cpp | 2 | ||||
| -rw-r--r-- | src/qmmpui/playlisttrack.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmpui/metadataformatter.cpp b/src/qmmpui/metadataformatter.cpp index 65562127a..0d5856f78 100644 --- a/src/qmmpui/metadataformatter.cpp +++ b/src/qmmpui/metadataformatter.cpp @@ -101,7 +101,7 @@ QString MetaDataFormatter::format(const QMap<Qmmp::MetaData, QString> &metaData, QString MetaDataFormatter::formatLength(qint64 length) { - if(length < 0) + if(length <= 0) return QString(); QString str; if(length >= 3600) diff --git a/src/qmmpui/playlisttrack.cpp b/src/qmmpui/playlisttrack.cpp index 58a8245c0..fc9c139e9 100644 --- a/src/qmmpui/playlisttrack.cpp +++ b/src/qmmpui/playlisttrack.cpp @@ -207,7 +207,7 @@ const QStringList PlayListTrack::formattedTitles() const QString PlayListTrack::formattedLength() { - if(m_length != 0 && m_formattedLength.isEmpty()) + if(m_length > 0 && m_formattedLength.isEmpty()) { m_formattedLength = MetaDataFormatter::formatLength(m_length); } |
