mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #719
This commit is contained in:
parent
7bca831066
commit
76a8affcdc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user