mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 15:39:36 -05:00
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:
parent
477c05e71f
commit
cefe23504b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user