diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-01 05:46:36 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-01 05:46:36 +0000 |
commit | 84dedc9d7c81e97c9fc07f0ca97e34300b706e19 (patch) | |
tree | 80d5a1f424830a2b84340b54524eb7e2138cebb8 /plugins/TabSRMM/src/userprefs.cpp | |
parent | df60e52a47f80d89de55affae33d93f79e077885 (diff) |
common options for all logs moved to always visible settings
git-svn-id: http://svn.miranda-ng.org/main/trunk@3383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/userprefs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/userprefs.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/userprefs.cpp b/plugins/TabSRMM/src/userprefs.cpp index 164191d833..e176f14dbd 100644 --- a/plugins/TabSRMM/src/userprefs.cpp +++ b/plugins/TabSRMM/src/userprefs.cpp @@ -329,7 +329,6 @@ static struct _checkboxes { IDC_UPREFS_GROUPING, MWF_LOG_GROUPMODE,
IDC_UPREFS_BBCODE, MWF_LOG_BBCODE,
IDC_UPREFS_RTL, MWF_LOG_RTL,
- IDC_UPREFS_LOGSTATUS, MWF_LOG_STATUSCHANGES,
IDC_UPREFS_NORMALTEMPLATES, MWF_LOG_NORMALTEMPLATES,
0, 0
};
@@ -406,6 +405,10 @@ static INT_PTR CALLBACK DlgProcUserPrefsLogOptions(HWND hwndDlg, UINT msg, WPARA CheckDlgButton(hwndDlg, checkboxes[i].uId, BST_INDETERMINATE);
i++;
}
+ if (M->GetByte("logstatuschanges", 0) == M->GetByte(hContact, "logstatuschanges", 0))
+ CheckDlgButton(hwndDlg, IDC_UPREFS_LOGSTATUS, BST_INDETERMINATE);
+ else
+ CheckDlgButton(hwndDlg, IDC_UPREFS_LOGSTATUS, M->GetByte(hContact, "logstatuschanges", 0) ? BST_CHECKED : BST_UNCHECKED);
break;
}
case WM_USER + 100: {
@@ -428,6 +431,10 @@ static INT_PTR CALLBACK DlgProcUserPrefsLogOptions(HWND hwndDlg, UINT msg, WPARA }
i++;
}
+ state = IsDlgButtonChecked(hwndDlg, IDC_UPREFS_LOGSTATUS);
+ if (state != BST_INDETERMINATE) {
+ M->WriteByte(hContact, SRMSGMOD_T, "logstatuschanges", (BYTE)state);
+ }
if (dwMask) {
M->WriteDword(hContact, SRMSGMOD_T, "mwmask", dwMask);
M->WriteDword(hContact, SRMSGMOD_T, "mwflags", dwFlags);
|