Correctly reselect 'All branches'

This commit is contained in:
Jesse van den Kieboom 2009-06-28 01:55:26 +02:00
parent 1215f49d58
commit ff7c07a4e6
2 changed files with 6 additions and 2 deletions

View file

@ -942,7 +942,7 @@ load_current_ref(GitgRepository *self)
return NULL; return NULL;
} }
if (*out) if (*out && !*(out + 1))
{ {
ret = g_strdup(*out); ret = g_strdup(*out);
} }

View file

@ -793,7 +793,11 @@ fill_branches_combo(GitgWindow *window)
COLUMN_BRANCHES_REF, NULL, COLUMN_BRANCHES_REF, NULL,
-1); -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); gtk_combo_box_set_active(window->priv->combo_branches, 0);
} }