From e397560654967206049fcf36afe6c01e9f84ef1b Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 1 Mar 2013 20:51:40 +0000 Subject: [PATCH] fixed bug causing crash when invitation is received foran unsubscribed lobby git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6174 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ChatLobbyWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retroshare-gui/src/gui/ChatLobbyWidget.cpp b/retroshare-gui/src/gui/ChatLobbyWidget.cpp index 4d1104e5a..6809ba546 100644 --- a/retroshare-gui/src/gui/ChatLobbyWidget.cpp +++ b/retroshare-gui/src/gui/ChatLobbyWidget.cpp @@ -543,6 +543,9 @@ void ChatLobbyWidget::updateMessageChanged(ChatLobbyId id) QTreeWidgetItem *item = getTreeWidgetItem(id) ; + if(item == NULL) + return ; + item->setIcon(0,_lobby_infos[id].default_icon) ; }