mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
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:
parent
3eb673dc53
commit
94ba973987
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user