src/gtkaccount.c

changeset 12843
323bd864a6f1
parent 12671
6297334c5e74
child 12960
69571cc82fda
equal deleted inserted replaced
12842:ce82d6cbd24f 12843:323bd864a6f1
712 update_editable(GaimConnection *gc, AccountPrefsDialog *dialog) 712 update_editable(GaimConnection *gc, AccountPrefsDialog *dialog)
713 { 713 {
714 gboolean set; 714 gboolean set;
715 GList *l; 715 GList *l;
716 716
717 if (dialog->account == NULL)
718 return;
719
717 if (gc != NULL && dialog->account != gaim_connection_get_account(gc)) 720 if (gc != NULL && dialog->account != gaim_connection_get_account(gc))
718 return; 721 return;
719 722
720 set = !(gaim_account_is_connected(dialog->account) || gaim_account_is_connecting(dialog->account)); 723 set = !(gaim_account_is_connected(dialog->account) || gaim_account_is_connecting(dialog->account));
721 gtk_widget_set_sensitive(dialog->protocol_menu, set); 724 gtk_widget_set_sensitive(dialog->protocol_menu, set);

mercurial