OSDN Git Service

Send Mail Save attachment and combine status.
authorFrank Li <lznuaa@gmail.com>
Fri, 17 Apr 2009 15:10:41 +0000 (23:10 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 17 Apr 2009 15:10:41 +0000 (23:10 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/SendMailDlg.cpp
src/TortoiseProc/SendMailDlg.h

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
index 571e50f..e547d29 100644 (file)
@@ -7,6 +7,7 @@
 #include "RegHistory.h"\r
 #include "TGitPath.h"\r
 #include "patch.h"\r
+#include "Registry.h"\r
 \r
 class CSendMailDlg : public CResizableStandAloneDialog\r
 {\r
@@ -40,6 +41,8 @@ public:
        CListCtrl m_ctrlList;\r
        CTGitPathList m_PathList;\r
 \r
+    CRegDWORD  m_regAttach;\r
+       CRegDWORD       m_regCombine;\r
 \r
        std::map<int,CPatch> m_MapPatch;\r
 \r