mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
Set the active lobby tree item in the tree when activating the lobby from the toaster.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6629 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e99b202b51
commit
5155c99296
1 changed files with 7 additions and 0 deletions
|
@ -250,6 +250,13 @@ void ChatLobbyWidget::addChatPage(ChatLobbyDialog *d)
|
||||||
void ChatLobbyWidget::setCurrentChatPage(ChatLobbyDialog *d)
|
void ChatLobbyWidget::setCurrentChatPage(ChatLobbyDialog *d)
|
||||||
{
|
{
|
||||||
stackedWidget->setCurrentWidget(d) ;
|
stackedWidget->setCurrentWidget(d) ;
|
||||||
|
|
||||||
|
if (d) {
|
||||||
|
QTreeWidgetItem *item = getTreeWidgetItem(d->id());
|
||||||
|
if (item) {
|
||||||
|
lobbyTreeWidget->setCurrentItem(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatLobbyWidget::updateDisplay()
|
void ChatLobbyWidget::updateDisplay()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue