OSDN Git Service

Fixed issue #112: (8) Low hanging GUI fruits during Commit and Push
authorFrank Li <lznuaa@gmail.com>
Sat, 11 Jul 2009 06:45:47 +0000 (14:45 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 11 Jul 2009 06:45:47 +0000 (14:45 +0800)
Make "Whole project" directory checked by default when the user commits in the root of the project. (not important)

Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/CommitDlg.cpp

index ac04831..91987a5 100644 (file)
@@ -121,6 +121,12 @@ BOOL CCommitDlg::OnInitDialog()
 //     GitConfig config;\r
 //     m_bWholeProject = config.KeepLocks();\r
 \r
+       if(this->m_pathList.GetCount() == 0)\r
+               m_bWholeProject =true;\r
+       \r
+       if(this->m_pathList.GetCount() == 1 && m_pathList[0].IsEmpty())\r
+               m_bWholeProject =true;\r
+\r
        UpdateData(FALSE);\r
        \r
        m_ListCtrl.Init(SVNSLC_COLEXT | SVNSLC_COLSTATUS | SVNSLC_COLADD |SVNSLC_COLDEL, _T("CommitDlg"));\r