Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(widget): Add removing friends and group on main window close
Browse files Browse the repository at this point in the history
  • Loading branch information
Diadlo committed Aug 18, 2017
1 parent 775d998 commit 638cdba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 638cdba

Please sign in to comment.