From 7e157d2364e6e23d523c5712b661a994d566ea5a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Jan 2014 15:58:15 +0000 Subject: =?UTF-8?q?=D0=BD=D0=B5=20=D0=BF-=D0=BF-=D0=BF=D1=80=D0=B8=D0=B3?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8-=D0=B8-=D0=B8=D0=BB=D0=B0=D1=81=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@7908 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/fileaccess.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/DbChecker/src/fileaccess.cpp b/plugins/DbChecker/src/fileaccess.cpp index 398ae17311..b545340155 100644 --- a/plugins/DbChecker/src/fileaccess.cpp +++ b/plugins/DbChecker/src/fileaccess.cpp @@ -37,7 +37,7 @@ INT_PTR CALLBACK FileAccessDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARA case WZN_PAGECHANGING: opts.bCheckOnly = IsDlgButtonChecked(hdlg, IDC_CHECKONLY); - opts.bAggressive = !opts.bCheckOnly && IsDlgButtonChecked(hdlg, IDC_AGGRESSIVE); + opts.bAggressive = IsDlgButtonChecked(hdlg, IDC_AGGRESSIVE); if (opts.bCheckOnly) opts.bBackup = 0; else opts.bBackup = IsDlgButtonChecked(hdlg, IDC_BACKUP); break; @@ -56,12 +56,8 @@ INT_PTR CALLBACK FileAccessDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARA break; case IDC_CHECKONLY: - BOOL bChecked = IsDlgButtonChecked(hdlg, IDC_CHECKONLY); - EnableWindow(GetDlgItem(hdlg, IDC_BACKUP), !bChecked); - EnableWindow(GetDlgItem(hdlg, IDC_STBACKUP), !bChecked); - EnableWindow(GetDlgItem(hdlg, IDC_AGGRESSIVE), !bChecked); - if (bChecked) - CheckDlgButton(hdlg, IDC_AGGRESSIVE, FALSE); + EnableWindow(GetDlgItem(hdlg, IDC_BACKUP), !IsDlgButtonChecked(hdlg, IDC_CHECKONLY)); + EnableWindow(GetDlgItem(hdlg, IDC_STBACKUP), !IsDlgButtonChecked(hdlg, IDC_CHECKONLY)); break; } break; -- cgit v1.2.3