summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/AimOscar/src/ui.cpp')
-rwxr-xr-xprotocols/AimOscar/src/ui.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/AimOscar/src/ui.cpp b/protocols/AimOscar/src/ui.cpp
index c8618cdf6f..8277b4596f 100755
--- a/protocols/AimOscar/src/ui.cpp
+++ b/protocols/AimOscar/src/ui.cpp
@@ -762,9 +762,10 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
CheckDlgButton(hwndDlg, IDC_CLIENTLOGIN, ppro->getByte(AIM_KEY_CLIENTLOGIN, 1) ? BST_CHECKED : BST_UNCHECKED);//use clientlogin
{
HWND dssl = GetDlgItem(hwndDlg, IDC_DSSL);
- EnableWindow(dssl, ppro->getByte(AIM_KEY_CLIENTLOGIN, 1) ? true : false);
- CheckDlgButton(hwndDlg, IDC_DSSL, BST_CHECKED);
- ppro->setByte(AIM_KEY_DSSL, IsDlgButtonChecked(hwndDlg, IDC_DSSL) != 0);
+ bool clientlogin = ppro->getByte(AIM_KEY_CLIENTLOGIN, 1);
+ EnableWindow(dssl, clientlogin);
+ if(!clientlogin)
+ CheckDlgButton(hwndDlg, IDC_DSSL, BST_CHECKED);
}
CheckDlgButton(hwndDlg, IDC_FSC, ppro->getByte(AIM_KEY_FSC, 0) ? BST_CHECKED : BST_UNCHECKED);//Force Single Client
}
@@ -772,12 +773,6 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
case WM_COMMAND:
switch (LOWORD(wParam)) {
- case IDC_DSSL:
- {
- SetDlgItemTextA(hwndDlg, IDC_HN, AIM_DEFAULT_SERVER);
- SetDlgItemInt(hwndDlg, IDC_PN, AIM_DEFAULT_PORT, FALSE);
- }
- break;
case IDC_SVRRESET:
@@ -798,7 +793,6 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
{
HWND dssl = GetDlgItem(hwndDlg, IDC_DSSL);
EnableWindow(dssl, true);
- CheckDlgButton(hwndDlg, IDC_DSSL, BST_UNCHECKED);
}
else
{