From bee10e1391e35d6e920f894d7f9a3974d7654bb8 Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Mon, 11 Apr 2016 06:58:50 +0000 Subject: aim: few settings ui fixes "clientlogin": few fixes //still does not work git-svn-id: http://svn.miranda-ng.org/main/trunk@16626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/ui.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'protocols/AimOscar/src/ui.cpp') 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 { -- cgit v1.2.3