[Kde-imaging] [Bug 135945] Tags with spaces are exported as multible tags
Gilles Caulier
caulier.gilles at gmail.com
Thu May 24 15:34:51 CEST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=135945
caulier.gilles gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From caulier.gilles gmail com 2007-05-24 15:34 -------
SVN commit 667926 by cgilles:
kipi-plugins from trunk : patch from Andrew Wilkinson to prevent multiple Tags creation with Flickr Export plugin when Tags strings include spaces.
CCMAIL: ajw140 york ac uk
BUG: 135945
M +9 -1 flickrtalker.cpp
--- trunk/extragear/libs/kipi-plugins/flickrexport/flickrtalker.cpp #667925:667926
@ -300,7 +300,15 @
form.addPair("is_friend",isfriend);
headers.append("is_friend="+ isfriend);
- QString tags=info.tags.join(" ");
+ QStringList taglist;
+ for(QStringList::Iterator iter = info.tags.begin(); iter != info.tags.end(); iter++) {
+ if((*iter).find(' ') != -1) {
+ taglist.append('"' + *iter + '"');
+ } else {
+ taglist.append(*iter);
+ }
+ }
+ QString tags=taglist.join(" ");
if(tags.length()>0){
form.addPair("tags",tags);
headers.append("tags="+ tags);
More information about the Kde-imaging
mailing list