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; } }