do not show msg icon for current lobby (Improved upon patch from AC)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6184 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-03-03 21:41:56 +00:00
parent 4f20b0a325
commit cc821d94ac

View File

@ -546,6 +546,13 @@ void ChatLobbyWidget::updateCurrentLobby()
}
void ChatLobbyWidget::updateMessageChanged(ChatLobbyId id)
{
QTreeWidgetItem *current_item = lobbyTreeWidget->currentItem();
// Don't show anything for current lobby.
//
if(current_item != NULL && current_item->data(COLUMN_DATA, ROLE_ID).toULongLong() == id)
return ;
_lobby_infos[id].default_icon = QIcon(IMAGE_MESSAGE) ;
QTreeWidgetItem *item = getTreeWidgetItem(id) ;