1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-11 23:27:30 +01:00
parent 7bca831066
commit 76a8affcdc
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -834,7 +834,10 @@ void Widget::removeFriend(Friend* f)
{
f->getFriendWidget()->setAsInactiveChatroom();
if (static_cast<GenericChatroomWidget*>(f->getFriendWidget()) == activeChatroomWidget)
{
activeChatroomWidget = nullptr;
onAddClicked();
}
FriendList::removeFriend(f->getFriendID());
core->removeFriend(f->getFriendID());
delete f;