pidgin/gtkaccount.c

changeset 39913
ce96d4639dc7
parent 39759
ea1401483849
child 39932
1788230a5ef3
--- a/pidgin/gtkaccount.c	Wed Oct 02 03:43:56 2019 -0400
+++ b/pidgin/gtkaccount.c	Wed Oct 02 06:21:41 2019 -0400
@@ -263,8 +263,8 @@
 			dialog->register_button), FALSE);
 		gtk_widget_hide(dialog->register_button);
 	} else {
-		if (dialog->protocol != NULL &&
-		   (purple_protocol_get_options(dialog->protocol) & OPT_PROTO_REGISTER_NOSCREENNAME)) {
+		if (purple_protocol_get_options(dialog->protocol) &
+		    OPT_PROTO_REGISTER_NOSCREENNAME) {
 			gtk_widget_set_sensitive(dialog->register_button, TRUE);
 		} else {
 			gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(

mercurial