OSDN Git Service

Send Mail Save attachment and combine status.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SendMailDlg.cpp
index f1fbe3b..1e78be1 100644 (file)
@@ -17,9 +17,12 @@ CSendMailDlg::CSendMailDlg(CWnd* pParent /*=NULL*/)
        , m_To(_T(""))\r
        , m_CC(_T(""))\r
        , m_Subject(_T(""))\r
-       , m_bAttachment(FALSE)\r
-       , m_bCombine(FALSE)\r
+       \r
+       , m_regAttach(_T("Software\\TortoiseGit\\TortoiseProc\\SendMail\\Attach"),0)\r
+       , m_regCombine(_T("Software\\TortoiseGit\\TortoiseProc\\SendMail\\Combine"),0)\r
 {\r
+       m_bAttachment  = m_regAttach;\r
+       m_bCombine =     m_regCombine;\r
 \r
 }\r
 \r
@@ -145,6 +148,10 @@ void CSendMailDlg::OnBnClickedOk()
                        this->m_PathList.AddPath(path);\r
                }\r
        }\r
+\r
+       m_regAttach=m_bAttachment;\r
+       m_regCombine=m_bCombine;\r
+\r
        OnOK();\r
        // TODO: Add your control notification handler code here\r
 }\r