From 6f36783b74a1f2aad44b941ba9ef326093719820 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 21 Oct 2012 22:46:50 +0200 Subject: [PATCH] Small code cleanup Signed-off-by: Sven Strickroth --- src/TortoiseProc/AppUtils.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/TortoiseProc/AppUtils.cpp b/src/TortoiseProc/AppUtils.cpp index d79865c15..8a566b926 100644 --- a/src/TortoiseProc/AppUtils.cpp +++ b/src/TortoiseProc/AppUtils.cpp @@ -899,8 +899,6 @@ bool CAppUtils::StartShowUnifiedDiff(HWND /*hWnd*/, const CTGitPath& url1, const bool CAppUtils::Export(CString *BashHash) { - bool bRet = false; - // ask from where the export has to be done CExportDlg dlg; if(BashHash) @@ -914,10 +912,9 @@ bool CAppUtils::Export(CString *BashHash) CProgressDlg pro; pro.m_GitCmd=cmd; - pro.DoModal(); - return TRUE; + return (pro.DoModal() == IDOK); } - return bRet; + return false; } bool CAppUtils::CreateBranchTag(bool IsTag,CString *CommitHash, bool switch_new_brach) -- 2.11.4.GIT