From 42bcb500956820ed95042eeca2482b7b4af01669 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 2 Feb 2013 13:19:07 +0100 Subject: [PATCH] Do not select last selected item if user has selected another item Signed-off-by: Sven Strickroth (cherry picked from commit ec865f82ce10b6d77c126f9ce75df03ab483c2d1) --- src/TortoiseProc/GitLogListBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index 6360b1e30..45d4288a0 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -3450,6 +3450,8 @@ void CGitLogListBase::OnHdnItemchanging(NMHDR *pNMHDR, LRESULT *pResult) } LRESULT CGitLogListBase::OnScrollToMessage(WPARAM itemToSelect, LPARAM /*lParam*/) { + if (GetSelectedCount() != 0) + return 0; SetItemState((int)itemToSelect, LVIS_SELECTED, LVIS_SELECTED); EnsureVisible((int)itemToSelect, FALSE); return 0; -- 2.11.4.GIT