OSDN Git Service

Only apply checked patch
[tortoisegit/TortoiseGitJp.git] / 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
-               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