diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 975348f85..2811f4a00 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -834,7 +834,10 @@ void Widget::removeFriend(Friend* f) { f->getFriendWidget()->setAsInactiveChatroom(); if (static_cast(f->getFriendWidget()) == activeChatroomWidget) + { activeChatroomWidget = nullptr; + onAddClicked(); + } FriendList::removeFriend(f->getFriendID()); core->removeFriend(f->getFriendID()); delete f;