mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 04:58:58 +00:00
Correctly reselect 'All branches'
This commit is contained in:
parent
1215f49d58
commit
ff7c07a4e6
2 changed files with 6 additions and 2 deletions
|
@ -942,7 +942,7 @@ load_current_ref(GitgRepository *self)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (*out)
|
||||
if (*out && !*(out + 1))
|
||||
{
|
||||
ret = g_strdup(*out);
|
||||
}
|
||||
|
|
|
@ -793,7 +793,11 @@ fill_branches_combo(GitgWindow *window)
|
|||
COLUMN_BRANCHES_REF, NULL,
|
||||
-1);
|
||||
|
||||
if (!refset)
|
||||
if (current_ref == NULL)
|
||||
{
|
||||
gtk_combo_box_set_active_iter (window->priv->combo_branches, &iter);
|
||||
}
|
||||
else if (!refset)
|
||||
{
|
||||
gtk_combo_box_set_active(window->priv->combo_branches, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue