fixed situation leading to uninitialised message content in MessageDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8442 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-14 15:20:25 +00:00
parent 3eb673dc53
commit 94ba973987

View File

@ -542,9 +542,11 @@ void MessagesDialog::messageTreeWidgetCustomPopupMenu(QPoint /*point*/)
std::string mid;
MessageInfo msgInfo;
if (getCurrentMsg(cid, mid)) {
rsMail->getMessage(mid, msgInfo);
}
if (!getCurrentMsg(cid, mid))
return ;
if(!rsMail->getMessage(mid, msgInfo))
return ;
QList<QTreeWidgetItem*> itemsRead;
QList<QTreeWidgetItem*> itemsUnread;