From 62950252f8239bf29a326ca85bffd6b7027ca33c Mon Sep 17 00:00:00 2001 From: Yue Lin Ho Date: Sun, 15 Nov 2015 22:42:56 +0800 Subject: [PATCH] Fixed issue #2641: Commit: Pre-select first item from "Changes made" list Signed-off-by: Yue Lin Ho Signed-off-by: Sven Strickroth --- src/Changelog.txt | 3 +++ src/TortoiseProc/CommitDlg.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/Changelog.txt b/src/Changelog.txt index c7c1728d8..e4e78dd3a 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -1,6 +1,9 @@ = Release 1.8.17.0 = Released: unreleased +== Features == + * Fixed issue #2641: Commit: Pre-select first item from "Changes made" list + == Bug Fixes == * Fixed issue #2647: TortoiseGitBlame does not display files correctly with mixed line endings (such as CRCRLF) diff --git a/src/TortoiseProc/CommitDlg.cpp b/src/TortoiseProc/CommitDlg.cpp index e8addcca6..d915589b8 100644 --- a/src/TortoiseProc/CommitDlg.cpp +++ b/src/TortoiseProc/CommitDlg.cpp @@ -1230,6 +1230,8 @@ UINT CCommitDlg::StatusThread() SetDlgItemText(IDC_COMMIT_TO, g_Git.GetCurrentBranch()); m_tooltips.AddTool(GetDlgItem(IDC_STATISTICS), m_ListCtrl.GetStatisticsString()); + if (m_ListCtrl.GetItemCount() != 0) + m_ListCtrl.SetItemState(0, LVIS_SELECTED, LVIS_SELECTED); } if (!success) { -- 2.11.4.GIT