Browse Source

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.
pull/1619/head
tux3 10 years ago
parent
commit
7135e7ec8a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 1
      src/widget/friendwidget.cpp

1
src/widget/friendwidget.cpp

@ -250,6 +250,7 @@ void FriendWidget::setAlias(const QString& _alias) @@ -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();
}

Loading…
Cancel
Save