mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -04:00
Fixed showing info page in ChatLobbyWidget.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6761 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6a9dfed408
commit
3ced628dc3
2 changed files with 9 additions and 10 deletions
|
@ -550,7 +550,7 @@ void ChatLobbyWidget::showBlankPage(ChatLobbyId id)
|
||||||
{
|
{
|
||||||
// show the default blank page.
|
// show the default blank page.
|
||||||
stackedWidget->setCurrentWidget(_lobby_blank_page) ;
|
stackedWidget->setCurrentWidget(_lobby_blank_page) ;
|
||||||
|
|
||||||
// Update information
|
// Update information
|
||||||
std::vector<VisibleChatLobbyRecord> lobbies;
|
std::vector<VisibleChatLobbyRecord> lobbies;
|
||||||
rsMsgs->getListOfNearbyChatLobbies(lobbies);
|
rsMsgs->getListOfNearbyChatLobbies(lobbies);
|
||||||
|
@ -565,20 +565,20 @@ void ChatLobbyWidget::showBlankPage(ChatLobbyId id)
|
||||||
lobbypeers_lineEdit->setText( QString::number((*it).total_number_of_peers) );
|
lobbypeers_lineEdit->setText( QString::number((*it).total_number_of_peers) );
|
||||||
|
|
||||||
lobbyinfo_label->setText(tr("You're not subscribed to this lobby; Double click-it to enter and chat.") );
|
lobbyinfo_label->setText(tr("You're not subscribed to this lobby; Double click-it to enter and chat.") );
|
||||||
|
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
lobbyname_lineEdit->clear();
|
lobbyname_lineEdit->clear();
|
||||||
lobbyid_lineEdit->clear();
|
lobbyid_lineEdit->clear();
|
||||||
lobbytopic_lineEdit->clear();
|
lobbytopic_lineEdit->clear();
|
||||||
lobbytype_lineEdit->clear();
|
lobbytype_lineEdit->clear();
|
||||||
lobbypeers_lineEdit->clear();
|
lobbypeers_lineEdit->clear();
|
||||||
|
|
||||||
QString text = tr("No lobby selected. \nSelect lobbies at left to show details.\nDouble click lobbies to enter and chat.") ;
|
QString text = tr("No lobby selected. \nSelect lobbies at left to show details.\nDouble click lobbies to enter and chat.") ;
|
||||||
lobbyinfo_label->setText(text) ;
|
lobbyinfo_label->setText(text) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatLobbyWidget::subscribeItem()
|
void ChatLobbyWidget::subscribeItem()
|
||||||
{
|
{
|
||||||
subscribeLobby(lobbyTreeWidget->currentItem());
|
subscribeLobby(lobbyTreeWidget->currentItem());
|
||||||
|
|
|
@ -79,7 +79,6 @@ private:
|
||||||
ChatTabWidget *tabWidget ;
|
ChatTabWidget *tabWidget ;
|
||||||
|
|
||||||
std::map<ChatLobbyId,ChatLobbyInfoStruct> _lobby_infos ;
|
std::map<ChatLobbyId,ChatLobbyInfoStruct> _lobby_infos ;
|
||||||
QTextBrowser *_lobby_blank_page ;
|
|
||||||
|
|
||||||
std::map<QTreeWidgetItem*,time_t> _icon_changed_map ;
|
std::map<QTreeWidgetItem*,time_t> _icon_changed_map ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue