Browse Source

fix: correctly destroy on group remove

reviewable/pr6369/r1
sudden6 4 years ago
parent
commit
c95057283e
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 3
      src/widget/widget.cpp

3
src/widget/widget.cpp

@ -2070,12 +2070,13 @@ void Widget::removeGroup(Group* g, bool fake) @@ -2070,12 +2070,13 @@ void Widget::removeGroup(Group* g, bool fake)
return;
}
groupChatForms.erase(groupChatFormIt);
groupAlertConnections.remove(groupId);
delete g;
if (contentLayout && contentLayout->mainHead->layout()->isEmpty()) {
onAddClicked();
}
groupAlertConnections.remove(groupId);
}
void Widget::removeGroup(const GroupId& groupId)

Loading…
Cancel
Save