From 3fef69f5217f87ca156dd967d829f856ef23da44 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 6 Aug 2012 01:33:37 +0200 Subject: [PATCH] GitStatusListCtrl: Refresh list after ignoring a file This is necessary because the user might choose to ignore all files with the same name recursively. The old behavior was not accurate in this case. Signed-off-by: Sven Strickroth --- src/Git/GitStatusListCtrl.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Git/GitStatusListCtrl.cpp b/src/Git/GitStatusListCtrl.cpp index a9b739c42..b24771c40 100644 --- a/src/Git/GitStatusListCtrl.cpp +++ b/src/Git/GitStatusListCtrl.cpp @@ -2192,18 +2192,10 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point) if(!CAppUtils::IgnoreFile(ignorelist,false)) break; - for(int i=0;iGetSafeHwnd()) { - int nListboxEntries = GetItemCount(); - for (int nItem=0; nItemGetGitPathString()==ignorelist[i].GetGitPathString()) - { - RemoveListEntry(nItem); - break; - } - } + pParent->SendMessage(GITSLNM_NEEDSREFRESH); } SetRedraw(TRUE); } -- 2.11.4.GIT