diff --git a/src/core/core.cpp b/src/core/core.cpp index fb895326b..8e29ca7f0 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -592,6 +592,7 @@ void Core::requestFriendship(const ToxId& friendId, const QString& message) if (!errorMessage.isNull()) { emit failedToAddFriend(friendPk, errorMessage); profile.saveToxSave(); + return; } ToxString cMessage(message);