Fixed crash in ChatMsgItem::removeItem when "mParent == NULL".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8605 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-07-12 21:56:12 +00:00
parent f36b12c90f
commit 737da1201d

View File

@ -163,12 +163,15 @@ void ChatMsgItem::removeItem()
std::cerr << std::endl;
#endif
mParent->lockLayout(this, true);
hide();
mParent->lockLayout(this, false);
if (mParent) {
mParent->lockLayout(this, true);
}
hide();
if (mParent) {
mParent->lockLayout(this, false);
if (mParent)
{
mParent->deleteFeedItem(this, mFeedId);
}
}