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:
csoler 2012-03-16 23:07:28 +00:00
parent 65cde95fba
commit 40b9e17a2e
2 changed files with 10 additions and 3 deletions

View File

@ -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)

View File

@ -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));