mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Fix crash in radiobutton destruction.
It crashed if the button was destroyed from group _changedCallback.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user