1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-02 13:38:00 +01:00
parent 0b489c4dca
commit 4453bbe266
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

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