1
0
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:
Diadlo 2017-03-21 01:06:50 +03:00
parent f0cec44a8c
commit c7202c8b24
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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();