mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
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:
parent
4f20b0a325
commit
cc821d94ac
@ -546,6 +546,13 @@ void ChatLobbyWidget::updateCurrentLobby()
|
|||||||
}
|
}
|
||||||
void ChatLobbyWidget::updateMessageChanged(ChatLobbyId id)
|
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) ;
|
_lobby_infos[id].default_icon = QIcon(IMAGE_MESSAGE) ;
|
||||||
|
|
||||||
QTreeWidgetItem *item = getTreeWidgetItem(id) ;
|
QTreeWidgetItem *item = getTreeWidgetItem(id) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user