diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/DbChecker/src/fileaccess.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/DbChecker/src/fileaccess.cpp b/plugins/DbChecker/src/fileaccess.cpp index b545340155..398ae17311 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 = IsDlgButtonChecked(hdlg, IDC_AGGRESSIVE);
+ opts.bAggressive = !opts.bCheckOnly && IsDlgButtonChecked(hdlg, IDC_AGGRESSIVE);
if (opts.bCheckOnly) opts.bBackup = 0;
else opts.bBackup = IsDlgButtonChecked(hdlg, IDC_BACKUP);
break;
@@ -56,8 +56,12 @@ INT_PTR CALLBACK FileAccessDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARA break;
case IDC_CHECKONLY:
- EnableWindow(GetDlgItem(hdlg, IDC_BACKUP), !IsDlgButtonChecked(hdlg, IDC_CHECKONLY));
- EnableWindow(GetDlgItem(hdlg, IDC_STBACKUP), !IsDlgButtonChecked(hdlg, 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);
break;
}
break;
|