diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-08 13:47:14 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-08 13:47:14 +0000 |
commit | 631784c6fc67761742280e1fb876867bc1bb50fe (patch) | |
tree | 35e5c44553899e45dbb5364fbf47d1a7162976ed /plugins/CrashDumper/src/ui.cpp | |
parent | 0bf13f208abe2713455ba8e2d9ffb752233fcc24 (diff) |
added option to enable\diable catching exaptions
git-svn-id: http://svn.miranda-ng.org/main/trunk@10924 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/ui.cpp')
-rw-r--r-- | plugins/CrashDumper/src/ui.cpp | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp index 5566165478..2619ac0e5c 100644 --- a/plugins/CrashDumper/src/ui.cpp +++ b/plugins/CrashDumper/src/ui.cpp @@ -202,10 +202,26 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP CheckDlgButton(hwndDlg, IDC_UPLOADCHN, db_get_b(NULL, PluginName, "UploadChanged", 0));
CheckDlgButton(hwndDlg, IDC_CLASSICDATES, clsdates);
CheckDlgButton(hwndDlg, IDC_DATESUBFOLDER, dtsubfldr);
+ CheckDlgButton(hwndDlg, IDC_CATCHCRASHES, catchcrashes);
+ if (needrestart)
+ ShowWindow(GetDlgItem(hwndDlg, IDC_RESTARTNOTE), SW_SHOW);
}
break;
case WM_COMMAND:
+ switch (LOWORD(wParam)) {
+ case IDC_CATCHCRASHES:
+ if (IsDlgButtonChecked(hwndDlg, IDC_CATCHCRASHES)) {
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CLASSICDATES), TRUE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DATESUBFOLDER), TRUE);
+ }
+ else {
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CLASSICDATES), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_DATESUBFOLDER), FALSE);
+ }
+ ShowWindow(GetDlgItem(hwndDlg, IDC_RESTARTNOTE), SW_SHOW);
+ needrestart = 1;
+ }
if ((HIWORD(wParam) == EN_CHANGE || HIWORD(wParam) == BN_CLICKED) && (HWND)lParam == GetFocus())
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
@@ -225,12 +241,17 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (clsdates)
db_set_b(NULL, PluginName, "ClassicDates", 1);
else
- db_unset(NULL, PluginName, "ClassicDates");
+ db_set_b(NULL, PluginName, "ClassicDates", 0);
dtsubfldr = IsDlgButtonChecked(hwndDlg, IDC_DATESUBFOLDER) == BST_CHECKED;
if (dtsubfldr)
db_set_b(NULL, PluginName, "SubFolders", 1);
else
- db_unset(NULL, PluginName, "SubFolders");
+ db_set_b(NULL, PluginName, "SubFolders", 0);
+ catchcrashes = IsDlgButtonChecked(hwndDlg, IDC_CATCHCRASHES) == BST_CHECKED;
+ if (catchcrashes)
+ db_set_b(NULL, PluginName, "CatchCrashes", 1);
+ else
+ db_set_b(NULL, PluginName, "CatchCrashes", 0);
}
break;
}
|