mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 15:00:36 -04:00
Merge pull request #1902 from PhenomRetroShare/Fix_SetMessageUnRead
Fix set Un/read choice in PopupMenu on messsage dialog.
This commit is contained in:
commit
f649ef943d
1 changed files with 3 additions and 4 deletions
|
@ -484,10 +484,9 @@ int MessagesDialog::getSelectedMsgCount (QList<QModelIndex> *items, QList<QModel
|
||||||
items->append(m);
|
items->append(m);
|
||||||
|
|
||||||
if (m.data(RsMessageModel::UnreadRole).toBool())
|
if (m.data(RsMessageModel::UnreadRole).toBool())
|
||||||
if (itemsUnread)
|
{ if (itemsUnread) itemsUnread->append(m); }
|
||||||
itemsUnread->append(m);
|
else
|
||||||
else if(itemsRead)
|
{ if (itemsRead) itemsRead->append(m); }
|
||||||
itemsRead->append(m);
|
|
||||||
|
|
||||||
if (itemsStar && m.data(RsMessageModel::MsgFlagsRole).toInt() & RS_MSG_STAR)
|
if (itemsStar && m.data(RsMessageModel::MsgFlagsRole).toInt() & RS_MSG_STAR)
|
||||||
itemsStar->append(m);
|
itemsStar->append(m);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue