diff options
Diffstat (limited to 'widgets/misc/e-auth-combo-box.c')
-rw-r--r-- | widgets/misc/e-auth-combo-box.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/misc/e-auth-combo-box.c b/widgets/misc/e-auth-combo-box.c index 48bd15cc1e..182e171c00 100644 --- a/widgets/misc/e-auth-combo-box.c +++ b/widgets/misc/e-auth-combo-box.c @@ -79,10 +79,11 @@ auth_combo_box_rebuild_model (EAuthComboBox *combo_box) } /* Try selecting the previous mechanism. */ - gtk_combo_box_set_active_id (gtk_combo_box, active_id); + if (active_id != NULL) + gtk_combo_box_set_active_id (gtk_combo_box, active_id); /* Or else fall back to the first mechanism. */ - if (gtk_combo_box_get_active_id (gtk_combo_box) == NULL) + if (gtk_combo_box_get_active (gtk_combo_box) == -1) gtk_combo_box_set_active (gtk_combo_box, 0); } |