From 35703946f18a5eef5420600080840d08ed79cd98 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 26 Jul 2014 14:41:16 +0200 Subject: [PATCH] Provide "Open" and "Open With" only for files Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitProgressList.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/TortoiseProc/GitProgressList.cpp b/src/TortoiseProc/GitProgressList.cpp index 6ab9431cf..6b69ca440 100644 --- a/src/TortoiseProc/GitProgressList.cpp +++ b/src/TortoiseProc/GitProgressList.cpp @@ -1101,13 +1101,20 @@ void CGitProgressList::OnContextMenu(CWnd* pWnd, CPoint point) */ if (GetSelectedCount() == 1) { - if ((data->action == git_wc_notify_add)|| - (data->action == git_wc_notify_revert)|| - (data->action == git_wc_notify_resolved)|| - (data->action == git_wc_notify_checkout)|| + if ((data->action == git_wc_notify_add) || + (data->action == git_wc_notify_revert) || + (data->action == git_wc_notify_resolved) || + (data->action == git_wc_notify_checkout) || (data->action == git_wc_notify_update_ref)) { - popup.AppendMenuIcon(ID_LOG, IDS_MENULOG,IDI_LOG); + popup.AppendMenuIcon(ID_LOG, IDS_MENULOG, IDI_LOG); + } + + if ((data->action == git_wc_notify_add) || + (data->action == git_wc_notify_revert) || + (data->action == git_wc_notify_resolved) || + (data->action == git_wc_notify_checkout)) + { popup.AppendMenu(MF_SEPARATOR, NULL); popup.AppendMenuIcon(ID_OPEN, IDS_LOG_POPUP_OPEN, IDI_OPEN); popup.AppendMenuIcon(ID_OPENWITH, IDS_LOG_POPUP_OPENWITH, IDI_OPEN); -- 2.11.4.GIT