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