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:
parent
a24f99df0d
commit
c95057283e
|
@ -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…
Reference in New Issue
Block a user