From e119e45f11821bf7881d1eb9732b41f0ea102a60 Mon Sep 17 00:00:00 2001 From: Sup Yut Sum Date: Thu, 18 Sep 2014 23:39:10 +0800 Subject: [PATCH] Add Toggle checked filters in refbrowse dialog Signed-off-by: Sup Yut Sum --- src/TortoiseProc/BrowseRefsDlg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/BrowseRefsDlg.cpp b/src/TortoiseProc/BrowseRefsDlg.cpp index ec414fc1b..6ef95d9db 100644 --- a/src/TortoiseProc/BrowseRefsDlg.cpp +++ b/src/TortoiseProc/BrowseRefsDlg.cpp @@ -1522,10 +1522,16 @@ LRESULT CBrowseRefsDlg::OnClickedInfoIcon(WPARAM /*wParam*/, LPARAM lParam) temp.LoadString(IDS_LOG_FILTER_REVS); popup.AppendMenu(LOGMENUFLAGS(LOGFILTER_REVS), LOGFILTER_REVS, temp); + temp.LoadString(IDS_LOG_FILTER_TOGGLE); + popup.AppendMenu(MF_STRING | MF_ENABLED, LOGFILTER_TOGGLE, temp); + int selection = popup.TrackPopupMenu(TPM_RETURNCMD | TPM_LEFTALIGN | TPM_NONOTIFY, point.x, point.y, this, 0); if (selection != 0) { - m_SelectedFilters ^= selection; + if (selection == LOGFILTER_TOGGLE) + m_SelectedFilters = (~m_SelectedFilters) & LOGFILTER_ALL; + else + m_SelectedFilters ^= selection; SetFilterCueText(); SetTimer(IDT_FILTER, 1000, NULL); } -- 2.11.4.GIT