Fix crash in radiobutton destruction.

It crashed if the button was destroyed from group _changedCallback.
This commit is contained in:
John Preston
2018-12-05 13:55:56 +04:00
parent b10ccce44a
commit efe3dfad5c
13 changed files with 165 additions and 119 deletions
@@ -305,11 +305,10 @@ void TermsBox::prepare() {
}
if (age) {
base::ObservableViewer(
age->entity()->checkedChanged
age->entity()->checkedChanges(
) | rpl::start_with_next([=] {
toggleAgeError(false);
}, lifetime());
}, age->lifetime());
heightValue(
) | rpl::start_with_next([=](int height) {