2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

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

View File

@@ -569,17 +569,20 @@ void ProxiesBox::setupContent() {
}
refreshProxyForCalls();
});
subscribe(_tryIPv6->checkedChanged, [=](bool checked) {
_tryIPv6->checkedChanges(
) | rpl::start_with_next([=](bool checked) {
_controller->setTryIPv6(checked);
});
}, _tryIPv6->lifetime());
_controller->proxySettingsValue(
) | rpl::start_with_next([=](ProxyData::Settings value) {
_proxySettings->setValue(value);
}, inner->lifetime());
subscribe(_proxyForCalls->entity()->checkedChanged, [=](bool checked) {
_proxyForCalls->entity()->checkedChanges(
) | rpl::start_with_next([=](bool checked) {
_controller->setProxyForCalls(checked);
});
}, _proxyForCalls->lifetime());
if (_rows.empty()) {
createNoRowsLabel();