diff --git a/retroshare-gui/src/gui/msgs/MessagesDialog.cpp b/retroshare-gui/src/gui/msgs/MessagesDialog.cpp index 164356509..a53b582c5 100644 --- a/retroshare-gui/src/gui/msgs/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/msgs/MessagesDialog.cpp @@ -484,10 +484,9 @@ int MessagesDialog::getSelectedMsgCount (QList *items, QListappend(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);