From 2db1d1449f14e0463005810189ff2f5e267c170c Mon Sep 17 00:00:00 2001 From: TheNain38 Date: Sat, 10 Oct 2015 13:25:58 +0200 Subject: [PATCH] Fixdisplaying Pub key when name empty --- src/friend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/friend.cpp b/src/friend.cpp index df47d24ca..cb02a6d55 100644 --- a/src/friend.cpp +++ b/src/friend.cpp @@ -58,6 +58,9 @@ void Friend::loadHistory() void Friend::setName(QString name) { + if (name.isEmpty()) + name = userID.publicKey; + userName = name; if (userAlias.size() == 0) {