mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
fixed completion in chat lobbies
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8000 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a1b36cd530
commit
f60d8cbb1a
1 changed files with 12 additions and 7 deletions
|
@ -623,11 +623,16 @@ QAbstractItemModel *ChatWidget::modelFromPeers()
|
||||||
#ifndef QT_NO_CURSOR
|
#ifndef QT_NO_CURSOR
|
||||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||||
#endif
|
#endif
|
||||||
#warning still need to use real nicknames for nickname completion.
|
|
||||||
// Get participants list
|
// Get participants list
|
||||||
QStringList participants;
|
QStringList participants;
|
||||||
|
|
||||||
for (std::map<RsGxsId,time_t>::const_iterator it = lobby.gxs_ids.begin(); it != lobby.gxs_ids.end(); ++it)
|
for (std::map<RsGxsId,time_t>::const_iterator it = lobby.gxs_ids.begin(); it != lobby.gxs_ids.end(); ++it)
|
||||||
participants.push_front(QString::fromUtf8(it->first.toStdString().c_str()));
|
{
|
||||||
|
RsIdentityDetails details ;
|
||||||
|
rsIdentity->getIdDetails(it->first,details) ;
|
||||||
|
|
||||||
|
participants.push_front(QString::fromUtf8(details.mNickname.c_str()));
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef QT_NO_CURSOR
|
#ifndef QT_NO_CURSOR
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue