OSDN Git Service

Auto add patch file that chosen at export to import patch list
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / ImportPatchCommand.cpp
index 2737153..6509e2e 100644 (file)
@@ -32,6 +32,15 @@ bool ImportPatchCommand::Execute()
 //     dlg.m_bIsTag=TRUE;\r
        CString cmd;\r
        CString output;\r
+\r
+       for(int i=0;i<this->pathList.GetCount();i++)\r
+       {\r
+               if(!pathList[i].IsDirectory())\r
+               {\r
+                       dlg.m_PathList.AddPath(pathList[i]);\r
+               }\r
+       }\r
+\r
        if(dlg.DoModal()==IDOK)\r
        {\r
                for(int i=0;i<dlg.m_PathList.GetCount();i++)\r