From 8bfb89bf921903a210e72b2256de2d9a712919b5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 29 Aug 2010 16:15:36 +0000 Subject: 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 --- src/qmmpui/metadataformatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmmpui/metadataformatter.cpp') 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 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("%,"); -- cgit v1.2.3-13-gbd6f