OSDN Git Service

Add return value handle of format patch
authorFrank Li <lznuaa@gmail.com>
Sun, 12 Apr 2009 14:48:51 +0000 (22:48 +0800)
committerFrank Li <lznuaa@gmail.com>
Sun, 12 Apr 2009 14:48:51 +0000 (22:48 +0800)
src/TortoiseProc/Commands/FormatPatchCommand.cpp

index 56a5a65..d7ef5ba 100644 (file)
@@ -57,11 +57,12 @@ bool FormatPatchCommand::Execute()
 \r
                CProgressDlg progress;\r
                progress.m_GitCmd=cmd;\r
-               if(progress.DoModal()==IDOK)\r
-                       return TRUE;\r
-\r
-               return TRUE;\r
+               progress.DoModal();\r
+               \r
+               CShellUpdater::Instance().AddPathForUpdate(CTGitPath(dlg.m_Dir));\r
+               CShellUpdater::Instance().Flush();\r
                \r
+               return !dlg.m_GitStatus;\r
        }\r
        return FALSE;\r
 }\r