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

Merge branch 'pr1613'

Persistent friends aliases, finally fixes #697

I discovered that the problem of temporary aliasing (which is a bug, according to #697) lied in the wrong config workflow: alias is being written to config object in memory, but not recorded to config file. This patch makes sure that new alias will get rendered in config file.
This commit is contained in:
tux3 2015-05-11 13:07:43 +02:00
commit 7135e7ec8a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -250,6 +250,7 @@ void FriendWidget::setAlias(const QString& _alias)
Friend* f = FriendList::findFriend(friendId);
f->setAlias(alias);
Settings::getInstance().setFriendAlias(f->getToxID(), alias);
Settings::getInstance().save(true);
hide();
show();
}