From 58893266e8eedf3c85fec6faa0d187436b03d86f Mon Sep 17 00:00:00 2001 From: apprb Date: Wed, 12 Nov 2014 01:29:00 +0900 Subject: [PATCH] fix #697 (Setting alias isn't persistent for some contacts) --- src/misc/settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/misc/settings.cpp b/src/misc/settings.cpp index 55533cf75..14e3f3663 100644 --- a/src/misc/settings.cpp +++ b/src/misc/settings.cpp @@ -849,6 +849,11 @@ void Settings::setFriendAlias(const ToxID &id, const QString &alias) if (it != friendLst.end()) { it->alias = alias; + } else { + friendProp fp; + fp.addr = key; + fp.alias = alias; + friendLst[key] = fp; } }