mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(widget): Add friendWidget deletation
Thanks @noavarice for help. Fix #4254, #4229
This commit is contained in:
parent
f0cec44a8c
commit
c7202c8b24
|
@ -1394,6 +1394,7 @@ void Widget::removeFriend(Friend* f, bool fake)
|
|||
FriendList::removeFriend(f->getFriendId(), fake);
|
||||
Nexus::getCore()->removeFriend(f->getFriendId(), fake);
|
||||
|
||||
delete widget;
|
||||
delete f;
|
||||
if (contentLayout && contentLayout->mainHead->layout()->isEmpty()) {
|
||||
onAddClicked();
|
||||
|
|
Loading…
Reference in New Issue
Block a user