OSDN Git Service

Only apply checked patch
authorFrank Li <lznuaa@gmail.com>
Thu, 30 Apr 2009 06:29:43 +0000 (14:29 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 30 Apr 2009 06:29:43 +0000 (14:29 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/ImportPatchDlg.cpp

index 93312e8..c0f4544 100644 (file)
@@ -174,9 +174,12 @@ void CImportPatchDlg::OnBnClickedOk()
 \r
        for(int i=0;i<m_cList.GetItemCount();i++)\r
        {\r
 \r
        for(int i=0;i<m_cList.GetItemCount();i++)\r
        {\r
-               CTGitPath path;\r
-               path.SetFromWin(m_cList.GetItemText(i,0));\r
-               m_PathList.AddPath(path);\r
+               if(m_cList.GetCheck(i))\r
+               {\r
+                       CTGitPath path;\r
+                       path.SetFromWin(m_cList.GetItemText(i,0));\r
+                       m_PathList.AddPath(path);\r
+               }\r
        }\r
        OnOK();\r
 }\r
        }\r
        OnOK();\r
 }\r