mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 23:34:39 +00:00
Disable remove current checked branch
This commit is contained in:
parent
201de21e7e
commit
60a775df4d
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class RefActionDelete : GitgExt.UIElement, GitgExt.Action, GitgExt.RefAction, Ob
|
|||
{
|
||||
get
|
||||
{
|
||||
return reference.is_branch()
|
||||
return (reference.is_branch() && !((Ggit.Branch)reference).is_head())
|
||||
|| reference.is_tag();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue