1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Grouplist: tracking of the friend's alias changing (fix: #1847)

This commit is contained in:
apprb 2016-01-22 22:52:18 +06:00
parent 23a82a3b28
commit fc8de5d0cf
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B

View File

@ -27,6 +27,8 @@
#include "src/persistence/settings.h"
#include "src/persistence/profile.h"
#include "src/nexus.h"
#include "src/grouplist.h"
#include "src/group.h"
Friend::Friend(uint32_t FriendId, const ToxId &UserId)
: userName{Core::getInstance()->getPeerName(UserId)},
@ -88,6 +90,11 @@ void Friend::setAlias(QString name)
GUI::setWindowTitle(dispName);
emit displayedNameChanged(getFriendWidget(), getStatus(), hasNewEvents);
for (Group *g : GroupList::getAllGroups())
{
g->regeneratePeerList();
}
}
void Friend::setStatusMessage(QString message)