From 758f9cfef758c521839f1554886b4ef81a2d1b05 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sat, 15 Sep 2018 17:59:15 +0200 Subject: Git: remove superfluous curly braces in branch view Change-Id: I649c8835d5a4eb30d1f77cfd3e9da33fe017ec9f Reviewed-by: Orgad Shaneh --- src/plugins/git/branchview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/git') diff --git a/src/plugins/git/branchview.cpp b/src/plugins/git/branchview.cpp index a1f580a36f..d8152adcc2 100644 --- a/src/plugins/git/branchview.cpp +++ b/src/plugins/git/branchview.cpp @@ -172,9 +172,8 @@ void BranchView::slotCustomContextMenu(const QPoint &point) contextMenu.addAction(tr("Remove"), this, &BranchView::remove); if (isLocal || isTag) contextMenu.addAction(tr("Rename"), this, &BranchView::rename); - if (!currentSelected) { + if (!currentSelected) contextMenu.addAction(tr("Checkout"), this, &BranchView::checkout); - } contextMenu.addSeparator(); contextMenu.addAction(tr("Diff"), this, [this] { const QString fullName = m_model->fullName(selectedIndex(), true); -- cgit v1.2.1