Git: BranchView: No "Add..." action for remote branches

It has been wrong forever, but it just doesn't make
sense to have an add action for remote branches.

Change-Id: Ia9a96d85f95821f27215e0a172435f38abcd685f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2024-02-05 17:31:57 +01:00
committed by André Hartmann
parent fb609817bf
commit 97e582c3c0

View File

@@ -236,7 +236,9 @@ void BranchView::slotCustomContextMenu(const QPoint &point)
SetInContext block(m_blockRefresh);
QMenu contextMenu;
contextMenu.addAction(Tr::tr("&Add..."), this, &BranchView::add);
if (isLocal)
contextMenu.addAction(Tr::tr("&Add..."), this, &BranchView::add);
const std::optional<QString> remote = m_model->remoteName(index);
if (remote.has_value()) {
contextMenu.addAction(Tr::tr("&Fetch"), this, [this, &remote] {