fixed icons in chat lobby list (patch from phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6641 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-08-28 21:13:35 +00:00
parent 477c05e71f
commit cefe23504b

View File

@ -432,7 +432,7 @@ void ChatLobbyWidget::createChatLobby()
void ChatLobbyWidget::showLobby(QTreeWidgetItem *item)
{
if (item == NULL && item->type() != TYPE_LOBBY) {
if (item == NULL || item->type() != TYPE_LOBBY) {
showBlankPage(0) ;
return;
}
@ -615,6 +615,18 @@ void ChatLobbyWidget::unsubscribeChatLobby(ChatLobbyId id)
bool isAutoSubscribe = rsMsgs->getLobbyAutoSubscribe(id);
if (isAutoSubscribe) rsMsgs->setLobbyAutoSubscribe(id, !isAutoSubscribe);
ChatLobbyDialog *cldCW=NULL ;
if (NULL != (cldCW = dynamic_cast<ChatLobbyDialog *>(stackedWidget->currentWidget())))
{
QTreeWidgetItem *qtwiFound = getTreeWidgetItem(cldCW->id());
if (qtwiFound) {
lobbyTreeWidget->setCurrentItem(qtwiFound);
}
} else {
lobbyTreeWidget->clearSelection();
}
}
void ChatLobbyWidget::updateCurrentLobby()