mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
end of Phenom patch for chat Icon activity
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6606 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ff7b56da36
commit
283785cd70
1 changed files with 6 additions and 3 deletions
|
@ -335,16 +335,19 @@ void ChatLobbyDialog::updateParticipantsList()
|
||||||
|
|
||||||
if (it != lInfos.end()) {
|
if (it != lInfos.end()) {
|
||||||
ChatLobbyInfo cliInfo=(*it);
|
ChatLobbyInfo cliInfo=(*it);
|
||||||
QList<QTreeWidgetItem*> qlOldParticipants=ui.participantsList->findItems("*",Qt::MatchWildcard);
|
QList<QTreeWidgetItem*> qlOldParticipants=ui.participantsList->findItems("*",Qt::MatchWildcard,COLUMN_NAME);
|
||||||
foreach(QTreeWidgetItem *qtwiCur,qlOldParticipants){
|
foreach(QTreeWidgetItem *qtwiCur,qlOldParticipants){
|
||||||
QString qsOldParticipant = qtwiCur->text(COLUMN_NAME);
|
QString qsOldParticipant = qtwiCur->text(COLUMN_NAME);
|
||||||
|
QByteArray qbaPart=qsOldParticipant.toUtf8();
|
||||||
|
std::string strTemp=std::string(qbaPart.begin(),qbaPart.end());
|
||||||
|
|
||||||
std::map<std::string,time_t>::iterator itFound(cliInfo.nick_names.find(qsOldParticipant.toStdString())) ;
|
std::map<std::string,time_t>::iterator itFound(cliInfo.nick_names.find(strTemp)) ;
|
||||||
|
|
||||||
if(itFound == cliInfo.nick_names.end())
|
if(itFound == cliInfo.nick_names.end())
|
||||||
{
|
{
|
||||||
//Old Participant go out, remove it
|
//Old Participant go out, remove it
|
||||||
ui.participantsList->removeItemWidget(qtwiCur,0);
|
int index = ui.participantsList->indexOfTopLevelItem(qtwiCur);
|
||||||
|
delete ui.participantsList->takeTopLevelItem(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue