Fix set Un/read choice in PopupMenu on messsage dialog.

This commit is contained in:
Phenom 2020-05-03 20:38:20 +02:00
parent d833049dce
commit 4b0f187b30

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);