mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #602
This commit is contained in:
parent
0b489c4dca
commit
4453bbe266
|
@ -91,8 +91,7 @@ void GroupChatForm::onSendTriggered()
|
|||
|
||||
void GroupChatForm::onUserListChanged()
|
||||
{
|
||||
unsigned nPeers = group->nPeers;
|
||||
nusersLabel->setText(tr("%1 users in chat").arg(nPeers));
|
||||
nusersLabel->setText(tr("%1 users in chat").arg(group->nPeers));
|
||||
|
||||
QLayoutItem *child;
|
||||
while ((child = namesListLayout->takeAt(0)))
|
||||
|
@ -103,10 +102,11 @@ void GroupChatForm::onUserListChanged()
|
|||
}
|
||||
|
||||
QStringList names(group->peers.values());
|
||||
for (unsigned i=0; i<nPeers; ++i)
|
||||
unsigned nNames = names.size();
|
||||
for (unsigned i=0; i<nNames; ++i)
|
||||
{
|
||||
QString nameStr = names[i];
|
||||
if (i!=nPeers-1)
|
||||
if (i!=nNames-1)
|
||||
nameStr+=", ";
|
||||
QLabel* nameLabel = new QLabel(nameStr);
|
||||
nameLabel->setObjectName("peersLabel");
|
||||
|
|
Loading…
Reference in New Issue
Block a user