1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(widget): Add removing friends and group on main window close

This commit is contained in:
Diadlo 2017-08-11 00:28:53 +03:00
parent 775d9987a3
commit 638cdba58d
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -509,6 +509,14 @@ Widget::~Widget()
icon->hide();
}
for (Group* g : GroupList::getAllGroups()) {
removeGroup(g, true);
}
for (Friend* f : FriendList::getAllFriends()) {
removeFriend(f, true);
}
delete icon;
delete profileForm;
delete addFriendForm;