[Digikam-devel] [Bug 146744] tag that contains '&' is not displayed correctly in menus
Gilles Caulier
caulier.gilles at gmail.com
Wed Jun 13 18:19:23 BST 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=146744
caulier.gilles gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From caulier.gilles gmail com 2007-06-13 19:19 -------
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());
}
}
}
More information about the Digikam-devel
mailing list