mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 20:36:36 -05: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
|
|
@ -508,15 +508,14 @@ QVariant RsMessageModel::displayRole(const Rs::Msgs::MsgInfoSummary& fmpe,int co
|
|||
QString text;
|
||||
|
||||
// build tag names
|
||||
for (auto tagit = tagInfo.tagIds.begin(); tagit != tagInfo.tagIds.end(); ++tagit)
|
||||
for (auto tag:tagInfo)
|
||||
{
|
||||
if (!text.isNull())
|
||||
text += ",";
|
||||
|
||||
auto Tag = Tags.types.find(*tagit);
|
||||
|
||||
if (Tag != Tags.types.end()) if (Tag != Tags.types.end())
|
||||
auto Tag = Tags.types.find(tag);
|
||||
|
||||
if (Tag != Tags.types.end())
|
||||
text += TagDefs::name(Tag->first, Tag->second.first);
|
||||
else
|
||||
RS_WARN("Unknown tag ", (int)Tag->first, " in message ", fmpe.msgId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue