diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 16:15:36 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 16:15:36 +0000 |
| commit | 8bfb89bf921903a210e72b2256de2d9a712919b5 (patch) | |
| tree | 273476660553f4f9e71ead5dd277c623eef0b244 /src/qmmpui/metadataformatter.cpp | |
| parent | dd5a730d8a67b8bd4eb0d906e920c5720f380d37 (diff) | |
| download | qmmp-8bfb89bf921903a210e72b2256de2d9a712919b5.tar.gz qmmp-8bfb89bf921903a210e72b2256de2d9a712919b5.tar.bz2 qmmp-8bfb89bf921903a210e72b2256de2d9a712919b5.zip | |
fixed title template parsing (patch by Avihay Baratz) (Closes issue 342)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1858 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/metadataformatter.cpp')
| -rw-r--r-- | src/qmmpui/metadataformatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmpui/metadataformatter.cpp b/src/qmmpui/metadataformatter.cpp index bd1501b4a..ffdba769c 100644 --- a/src/qmmpui/metadataformatter.cpp +++ b/src/qmmpui/metadataformatter.cpp @@ -98,7 +98,7 @@ QString MetaDataFormatter::parse(const QMap<Qmmp::MetaData, QString> metaData, q QString MetaDataFormatter::processIfKeyWord(QString title) { - int pos = title.indexOf("%if("); + int pos = title.lastIndexOf("%if("); int size = title.indexOf("%)",pos) - pos; QStringList args = title.mid (pos + 4, size - 4).split("%,"); |
