From d21f72d0dde65744c865c202d09db83c5db24c95 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Thu, 20 Feb 2020 11:13:41 +0100 Subject: [PATCH] Git: Simplify action in branch view Change-Id: Ic1a604baa7b83b7244febde776c95896b56a1467 Reviewed-by: Orgad Shaneh --- src/plugins/git/branchview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/git/branchview.cpp b/src/plugins/git/branchview.cpp index 03e434ff87a..3cac8265f18 100644 --- a/src/plugins/git/branchview.cpp +++ b/src/plugins/git/branchview.cpp @@ -223,8 +223,9 @@ void BranchView::slotCustomContextMenu(const QPoint &point) }); contextMenu.addSeparator(); } - QAction *act = contextMenu.addAction(tr("Manage &Remotes...")); - connect(act, &QAction::triggered, [this] { GitPlugin::manageRemotes(); }); + contextMenu.addAction(tr("Manage &Remotes..."), this, [] { + GitPlugin::manageRemotes(); + }); } if (hasActions) { if (!currentSelected && (isLocal || isTag))