Summary: | tag that contains '&' is not displayed correctly in menus | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Jonathan Marten <jjm> |
Component: | Usability-Menus | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.2 | |
Sentry Crash Report: | |||
Attachments: | Fix '&' in tag name in popup menus |
Description
Jonathan Marten
2007-06-13 16:21:15 UTC
Created attachment 20848 [details]
Fix '&' in tag name in popup menus
Jonathan, I have take a look in your patch, and all sound fine for me... Arnd, Gerhard, can you just perform a test with this patch before to apply it on svn ? I think it can be included to 0.9.2-final Thanks in advance Gilles Applied the patch, it compiles fine and I did not see any problems with tags containing an &. So it looks fine from me as well. SVN commit 674990 by cgilles: digiKam from KDE3 branch : fix "&" char on tag menus. BUG: 146744 M +5 -2 tagspopupmenu.cpp --- branches/extragear/kde3/graphics/digikam/digikam/tagspopupmenu.cpp #674989:674990 @@ -308,9 +308,12 @@ } QPixmap pix = SyncJob::getTagThumbnail((TAlbum*)a); + QString t = a->title(); + t.replace('&',"&&"); + if (a->firstChild()) { - menu->insertItem(pix, a->title(), buildSubMenu(a->id())); + menu->insertItem(pix, t, buildSubMenu(a->id())); } else { @@ -321,7 +324,7 @@ } else { - menu->insertItem(pix, a->title(), d->addToID + a->id()); + menu->insertItem(pix, t, d->addToID + a->id()); } } } Jonathan, I should have been a bit more verbose ;-): thanks a lot for the patch - contributions to the development of digikam are very much appreciated!! Best, Arnd Thanks for the comments Arnd and Gilles - I have only just started using the application seriously, and have not got involved in any serious development yet, but I will try to address any problems that I find! |