diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2018-09-15 17:59:15 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2018-09-15 17:31:00 +0000 |
commit | 758f9cfef758c521839f1554886b4ef81a2d1b05 (patch) | |
tree | 9ff0aac0837ad3ea24726411dfe69b55bb5dcf7f /src/plugins/git | |
parent | 673d22b8e33cc7282937dc669d8b9f5008c90e86 (diff) | |
download | qt-creator-758f9cfef758c521839f1554886b4ef81a2d1b05.tar.gz |
Git: remove superfluous curly braces in branch view
Change-Id: I649c8835d5a4eb30d1f77cfd3e9da33fe017ec9f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/branchview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |