From a97cc9cdcb61ec1bf7d0dcace4d5a00506aa7a74 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 8 Dec 2009 17:01:03 +0000 Subject: fixed bug with metadata git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1428 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/fileinfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/qmmp/fileinfo.cpp b/src/qmmp/fileinfo.cpp index 0cc086e03..a84025c3f 100644 --- a/src/qmmp/fileinfo.cpp +++ b/src/qmmp/fileinfo.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -92,7 +92,8 @@ void FileInfo::setLength(qint64 length) void FileInfo::setMetaData(Qmmp::MetaData key, const QString &value) { - m_metaData.insert(key, value); + if (!value.isEmpty() && value != "0") + m_metaData.insert(key, value); } void FileInfo::setMetaData(Qmmp::MetaData key, int value) -- cgit v1.2.3-13-gbd6f