mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -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
2 changed files with 10 additions and 3 deletions
|
@ -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()));
|
||||
|
||||
item->setText(COLUMN_TOPIC, QString::fromUtf8(topic.c_str()));
|
||||
item->setData(COLUMN_TOPIC, ROLE_SORT, QString::fromUtf8(topic.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…
Add table
Add a link
Reference in a new issue