https://git.reactos.org/?p=reactos.git;a=commitdiff;h=779f31a731178ddf504479...
commit 779f31a731178ddf504479c0daf2e48bb53bb6ae Author: Kyle Katarn contact@kcsoftwares.com AuthorDate: Mon Apr 20 18:30:33 2020 +0200 Commit: GitHub noreply@github.com CommitDate: Mon Apr 20 18:30:33 2020 +0200
[RAPPS] Proxy fields default state fix (CORE-16853) (#2594)
* Fix for CORE-16853 https://jira.reactos.org/browse/CORE-16853
Co-authored-by: Sylvain Deverre deverre.sylv@gmail.com --- base/applications/rapps/settingsdlg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/base/applications/rapps/settingsdlg.cpp b/base/applications/rapps/settingsdlg.cpp index 9716948de25..ccde6a94f07 100644 --- a/base/applications/rapps/settingsdlg.cpp +++ b/base/applications/rapps/settingsdlg.cpp @@ -69,11 +69,16 @@ namespace
CheckRadioButton(hDlg, IDC_PROXY_DEFAULT, IDC_USE_PROXY, IDC_PROXY_DEFAULT + Info->Proxy);
- if (IDC_PROXY_DEFAULT + Info->Proxy == IDC_USE_PROXY) + if (Info->Proxy == 0) { EnableWindow(GetDlgItem(hDlg, IDC_PROXY_SERVER), TRUE); EnableWindow(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), TRUE); } + else + { + EnableWindow(GetDlgItem(hDlg, IDC_PROXY_SERVER), FALSE); + EnableWindow(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), FALSE); + }
SetWindowTextW(GetDlgItem(hDlg, IDC_PROXY_SERVER), Info->szProxyServer); SetWindowTextW(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), Info->szNoProxyFor);