diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-12-08 17:01:03 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-12-08 17:01:03 +0000 |
| commit | a97cc9cdcb61ec1bf7d0dcace4d5a00506aa7a74 (patch) | |
| tree | 366b8d4b671f2046170225bafd0833b7230d544c | |
| parent | f3ebf1f3ec5ac77633db0509e12f87abb066c334 (diff) | |
| download | qmmp-a97cc9cdcb61ec1bf7d0dcace4d5a00506aa7a74.tar.gz qmmp-a97cc9cdcb61ec1bf7d0dcace4d5a00506aa7a74.tar.bz2 qmmp-a97cc9cdcb61ec1bf7d0dcace4d5a00506aa7a74.zip | |
fixed bug with metadata
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1428 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/qmmp/fileinfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
