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:
parent
775d9987a3
commit
638cdba58d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user