From: Frank Li Date: Sun, 12 Apr 2009 14:48:51 +0000 (+0800) Subject: Add return value handle of format patch X-Git-Url: http://git.sourceforge.jp/view?p=tortoisegit%2FTortoiseGitJp.git;a=commitdiff_plain;h=71fb053e88d2338adcc73f46c8f720d49d4e34ea;ds=sidebyside Add return value handle of format patch --- diff --git a/src/TortoiseProc/Commands/FormatPatchCommand.cpp b/src/TortoiseProc/Commands/FormatPatchCommand.cpp index 56a5a65..d7ef5ba 100644 --- a/src/TortoiseProc/Commands/FormatPatchCommand.cpp +++ b/src/TortoiseProc/Commands/FormatPatchCommand.cpp @@ -57,11 +57,12 @@ bool FormatPatchCommand::Execute() CProgressDlg progress; progress.m_GitCmd=cmd; - if(progress.DoModal()==IDOK) - return TRUE; - - return TRUE; + progress.DoModal(); + + CShellUpdater::Instance().AddPathForUpdate(CTGitPath(dlg.m_Dir)); + CShellUpdater::Instance().Flush(); + return !dlg.m_GitStatus; } return FALSE; }