mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix crash in radiobutton destruction.
It crashed if the button was destroyed from group _changedCallback.
This commit is contained in:
@@ -191,9 +191,7 @@ bool SectionWithToggle::toggled() const {
|
||||
|
||||
rpl::producer<bool> SectionWithToggle::toggledValue() const {
|
||||
if (_toggle) {
|
||||
return rpl::single(
|
||||
_toggle->checked()
|
||||
) | rpl::then(base::ObservableViewer(_toggle->checkedChanged));
|
||||
return _toggle->checkedValue();
|
||||
}
|
||||
return rpl::never<bool>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user