From: Frank Li Date: Sat, 11 Jul 2009 06:45:47 +0000 (+0800) Subject: Fixed issue #112: (8) Low hanging GUI fruits during Commit and Push X-Git-Url: http://git.sourceforge.jp/view?p=tortoisegit%2FTortoiseGitJp.git;a=commitdiff_plain;h=f7bd22d1f6c96a64cc35cc064b1ee10aa6f37629 Fixed issue #112: (8) Low hanging GUI fruits during Commit and Push Make "Whole project" directory checked by default when the user commits in the root of the project. (not important) Signed-off-by: Frank Li --- diff --git a/src/TortoiseProc/CommitDlg.cpp b/src/TortoiseProc/CommitDlg.cpp index ac04831..91987a5 100644 --- a/src/TortoiseProc/CommitDlg.cpp +++ b/src/TortoiseProc/CommitDlg.cpp @@ -121,6 +121,12 @@ BOOL CCommitDlg::OnInitDialog() // GitConfig config; // m_bWholeProject = config.KeepLocks(); + if(this->m_pathList.GetCount() == 0) + m_bWholeProject =true; + + if(this->m_pathList.GetCount() == 1 && m_pathList[0].IsEmpty()) + m_bWholeProject =true; + UpdateData(FALSE); m_ListCtrl.Init(SVNSLC_COLEXT | SVNSLC_COLSTATUS | SVNSLC_COLADD |SVNSLC_COLDEL, _T("CommitDlg"));