Merge pull request #1902 from PhenomRetroShare/Fix_SetMessageUnRead

Fix set Un/read choice in PopupMenu on messsage dialog.
This commit is contained in:
defnax 2020-05-07 23:37:06 +02:00 committed by GitHub
commit f649ef943d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,10 +484,9 @@ int MessagesDialog::getSelectedMsgCount (QList<QModelIndex> *items, QList<QModel
items->append(m);
if (m.data(RsMessageModel::UnreadRole).toBool())
if (itemsUnread)
itemsUnread->append(m);
else if(itemsRead)
itemsRead->append(m);
{ if (itemsUnread) itemsUnread->append(m); }
else
{ if (itemsRead) itemsRead->append(m); }
if (itemsStar && m.data(RsMessageModel::MsgFlagsRole).toInt() & RS_MSG_STAR)
itemsStar->append(m);