diff --git a/src/widget/form/settings/advancedform.cpp b/src/widget/form/settings/advancedform.cpp index 9f5f87000..937dab31b 100644 --- a/src/widget/form/settings/advancedform.cpp +++ b/src/widget/form/settings/advancedform.cpp @@ -180,6 +180,11 @@ void AdvancedForm::on_cbEnableUDP_stateChanged() bodyUI->cbEnableLanDiscovery->setEnabled(enableUdp); } +void AdvancedForm::on_cbEnableLanDiscovery_stateChanged() +{ + Settings::getInstance().setEnableLanDiscovery(bodyUI->cbEnableLanDiscovery->isChecked()); +} + void AdvancedForm::on_proxyAddr_editingFinished() { Settings::getInstance().setProxyAddr(bodyUI->proxyAddr->text()); diff --git a/src/widget/form/settings/advancedform.h b/src/widget/form/settings/advancedform.h index 6bef18843..eab5d904d 100644 --- a/src/widget/form/settings/advancedform.h +++ b/src/widget/form/settings/advancedform.h @@ -49,6 +49,7 @@ private slots: // Connection void on_cbEnableIPv6_stateChanged(); void on_cbEnableUDP_stateChanged(); + void on_cbEnableLanDiscovery_stateChanged(); void on_proxyAddr_editingFinished(); void on_proxyPort_valueChanged(int port); void on_proxyType_currentIndexChanged(int index);