forked from qt-creator/qt-creator
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:
committed by
André Hartmann
parent
fb609817bf
commit
97e582c3c0
@@ -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] {
|
||||
|
Reference in New Issue
Block a user