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

fix: correctly destroy on group remove

This commit is contained in:
sudden6 2021-08-28 00:26:45 +02:00
parent a24f99df0d
commit c95057283e
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

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