diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-10 18:58:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-10 18:58:05 +0300 |
commit | 91dfff8c6757dadd758fecceef2964eb294e5528 (patch) | |
tree | 7e98f606297784bfb918613f9eff8a7f344e7e70 /plugins/TabSRMM | |
parent | 5a3c6c39fa1cc3202a20e8c45a95fff9496d6205 (diff) |
fixes #1023 (TabSRMM: can't save template changes)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/templates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/templates.cpp b/plugins/TabSRMM/src/templates.cpp index cdc4674761..114186c985 100644 --- a/plugins/TabSRMM/src/templates.cpp +++ b/plugins/TabSRMM/src/templates.cpp @@ -289,7 +289,7 @@ void CTemplateEditDlg::onClick_Revert(CCtrlButton*) selchanging = TRUE; memcpy(tSet->szTemplates[inEdit], LTR_Default.szTemplates[inEdit], sizeof(wchar_t) * TEMPLATE_LENGTH); SetDlgItemText(m_hwnd, IDC_EDITTEMPLATE, tSet->szTemplates[inEdit]); - db_unset(m_hContact, rtl ? RTLTEMPLATES_MODULE : TEMPLATES_MODULE, TemplateNames[inEdit]); + db_unset(0, rtl ? RTLTEMPLATES_MODULE : TEMPLATES_MODULE, TemplateNames[inEdit]); SetFocus(GetDlgItem(m_hwnd, IDC_EDITTEMPLATE)); InvalidateRect(GetDlgItem(m_hwnd, IDC_TEMPLATELIST), nullptr, FALSE); selchanging = FALSE; @@ -312,7 +312,7 @@ void CTemplateEditDlg::onClick_Save(CCtrlButton*) Utils::enableDlgControl(m_hwnd, IDC_TEMPLATELIST, TRUE); Utils::enableDlgControl(m_hwnd, IDC_REVERT, FALSE); InvalidateRect(GetDlgItem(m_hwnd, IDC_TEMPLATELIST), nullptr, FALSE); - db_set_ws(m_hContact, rtl ? RTLTEMPLATES_MODULE : TEMPLATES_MODULE, TemplateNames[inEdit], newTemplate); + db_set_ws(0, rtl ? RTLTEMPLATES_MODULE : TEMPLATES_MODULE, TemplateNames[inEdit], newTemplate); SendDlgItemMessage(m_hwnd, IDC_EDITTEMPLATE, EM_SETREADONLY, TRUE, 0); } |