Fix crash in EditLinkBox destruction.

Fixes #10432.
This commit is contained in:
John Preston 2021-02-24 19:06:52 +04:00
parent 627426f604
commit 2d8e6f9745

View file

@ -120,10 +120,10 @@ void EditInviteLinkBox(
int expireValue = 0;
int usageValue = 0;
};
const auto state = container->lifetime().make_state<State>(State{
const auto state = box->lifetime().make_state<State>(State{
.expireValue = expire,
.usageValue = usage
});
});
const auto regenerate = [=] {
expireGroup->setValue(state->expireValue);
usageGroup->setValue(state->usageValue);