summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/fileaccess.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-26 15:58:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-26 15:58:15 +0000
commit7e157d2364e6e23d523c5712b661a994d566ea5a (patch)
tree5cddba322664d6c9e4e14c070966bf8b7a15af22 /plugins/DbChecker/src/fileaccess.cpp
parent232b5ed16b5c0eb5a26fe530eed45f01e909129a (diff)
не п-п-пригоди-и-илась
git-svn-id: http://svn.miranda-ng.org/main/trunk@7908 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src/fileaccess.cpp')
-rw-r--r--plugins/DbChecker/src/fileaccess.cpp10
1 files changed, 3 insertions, 7 deletions
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;