OSDN Git Service

Fixed issue #140: Incorrect treatment of "Cancel" action on "Apply patch serial"...
authorFrank Li <lznuaa@gmail.com>
Thu, 13 Aug 2009 15:02:09 +0000 (23:02 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 13 Aug 2009 15:02:09 +0000 (23:02 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/Commands/ImportPatchCommand.cpp

index 6fbd9ed..66b7523 100644 (file)
@@ -37,6 +37,9 @@ bool ImportPatchCommand::Execute()
        if(!this->orgCmdLinePath.HasAdminDir())\r
        {\r
                CString str=CAppUtils::ChooseRepository((CString*)&orgCmdLinePath.GetWinPathString());\r
+               if(str.IsEmpty())\r
+                       return FALSE;\r
+\r
                CTGitPath path;\r
                path.SetFromWin(str);\r
                \r