mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed small issue in sorting information from different peers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5025 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
65cde95fba
commit
40b9e17a2e
@ -701,7 +701,6 @@ void p3ChatService::handleRecvChatLobbyList(RsChatLobbyListItem_deprecated *item
|
||||
|
||||
rec.lobby_id = item->lobby_ids[i] ;
|
||||
rec.lobby_name = item->lobby_names[i] ;
|
||||
rec.lobby_topic = "[Old format: no topic provided]" ;
|
||||
rec.participating_friends.insert(item->PeerId()) ;
|
||||
|
||||
if(_should_reset_lobby_counts)
|
||||
|
@ -124,8 +124,16 @@ static void updateItem(QTreeWidgetItem *item, ChatLobbyId id, const std::string
|
||||
item->setText(COLUMN_NAME, QString::fromUtf8(name.c_str()));
|
||||
item->setData(COLUMN_NAME, ROLE_SORT, QString::fromUtf8(name.c_str()));
|
||||
|
||||
if(topic.empty())
|
||||
{
|
||||
item->setText(COLUMN_TOPIC, QObject::tr("[No topic provided]"));
|
||||
item->setData(COLUMN_TOPIC, ROLE_SORT, QObject::tr("[No topic provided]"));
|
||||
}
|
||||
else
|
||||
{
|
||||
item->setText(COLUMN_TOPIC, QString::fromUtf8(topic.c_str()));
|
||||
item->setData(COLUMN_TOPIC, ROLE_SORT, QString::fromUtf8(topic.c_str()));
|
||||
}
|
||||
|
||||
item->setText(COLUMN_USER_COUNT, QString::number(count));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user