mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 21:29:01 -04:00
removed mMsgTagIds since tags are not in RsMailStorageItem struct
This commit is contained in:
parent
0db41deb9f
commit
006f4c53be
7 changed files with 35 additions and 37 deletions
|
@ -475,15 +475,17 @@ void MessageWidget::showTagLabels()
|
|||
MsgTagInfo tagInfo;
|
||||
rsMail->getMessageTag(currMsgId, tagInfo);
|
||||
|
||||
if (tagInfo.tagIds.empty() == false) {
|
||||
if (!tagInfo.empty())
|
||||
{
|
||||
ui.tagsLabel->setVisible(true);
|
||||
|
||||
MsgTagType Tags;
|
||||
rsMail->getMessageTagTypes(Tags);
|
||||
|
||||
std::map<uint32_t, std::pair<std::string, uint32_t> >::iterator Tag;
|
||||
for (std::list<uint32_t>::iterator tagId = tagInfo.tagIds.begin(); tagId != tagInfo.tagIds.end(); ++tagId) {
|
||||
Tag = Tags.types.find(*tagId);
|
||||
for (auto tag:tagInfo)
|
||||
{
|
||||
Tag = Tags.types.find(tag);
|
||||
if (Tag != Tags.types.end()) {
|
||||
QLabel *tagLabel = new QLabel(TagDefs::name(Tag->first, Tag->second.first), this);
|
||||
tagLabel->setMaximumHeight(16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue