OSDN Git Service

Fixed issue #112: (7) Low hanging GUI fruits during Commit and Push
authorFrank Li <lznuaa@gmail.com>
Sat, 11 Jul 2009 06:24:59 +0000 (14:24 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 11 Jul 2009 06:24:59 +0000 (14:24 +0800)
When using "Commit" to also add files, if you forget to check the new files and press "Ok", you get the dialog "Nothing Commit" and then the whole Commit dialog closes. Keep the dialog open after this message.

Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Resources/TortoiseProcENG.rc
src/TortoiseProc/CommitDlg.cpp
src/TortoiseProc/resource.h

index c6db066..dcd728c 100644 (file)
Binary files a/src/Resources/TortoiseProcENG.rc and b/src/Resources/TortoiseProcENG.rc differ
index 0ca8712..ac04831 100644 (file)
@@ -519,7 +519,10 @@ void CCommitDlg::OnOK()
 \r
                CFile::Remove(tempfile);\r
        }else\r
 \r
                CFile::Remove(tempfile);\r
        }else\r
-               CMessageBox::Show(this->m_hWnd, _T("Nothing Commit"), _T("Commit Finish"), MB_OK | MB_ICONINFORMATION);\r
+       {\r
+               CMessageBox::Show(this->m_hWnd, IDS_ERROR_NOTHING_COMMIT, IDS_COMMIT_FINISH, MB_OK | MB_ICONINFORMATION);\r
+               bCloseCommitDlg=false;\r
+       }\r
 #if 0\r
        if (m_pathwatcher.GetNumberOfChangedPaths() && m_bRecursive)\r
        {\r
 #if 0\r
        if (m_pathwatcher.GetNumberOfChangedPaths() && m_bRecursive)\r
        {\r
index 5f0806d..4f58fed 100644 (file)
Binary files a/src/TortoiseProc/resource.h and b/src/TortoiseProc/resource.h differ