Mon, 07 Aug 2023 22:15:43 -0500
Fix creating new accounts
In the last batch of fixes for the account editor, we accidentaly broke the
ability to create new accounts.
Testing Done:
Successfully created a demo account with an empty profile. Also made sure the previous bugs didn't come back.
Reviewed at https://reviews.imfreedom.org/r/2551/
| pidgin/pidginaccounteditor.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/pidginaccounteditor.c Sun Aug 06 23:20:40 2023 -0500 +++ b/pidgin/pidginaccounteditor.c Mon Aug 07 22:15:43 2023 -0500 @@ -158,11 +158,6 @@ if(purple_account_is_connected(editor->account)) { gtk_widget_set_sensitive(editor->username, FALSE); } - } else { - /* If we don't have an account reset the fields that are static. */ - pidgin_protocol_chooser_set_protocol(PIDGIN_PROTOCOL_CHOOSER(editor->protocol), - NULL); - gtk_editable_set_text(GTK_EDITABLE(editor->username), ""); } /* Now remove the rows we added to the preference group for each non @@ -1308,6 +1303,11 @@ g_signal_connect_object(account, "notify::connection", G_CALLBACK(pidgin_account_editor_connection_changed_cb), editor, 0); + } else { + /* If we don't have an account reset the fields that are static. */ + pidgin_protocol_chooser_set_protocol(PIDGIN_PROTOCOL_CHOOSER(editor->protocol), + NULL); + gtk_editable_set_text(GTK_EDITABLE(editor->username), ""); } g_object_notify_by_pspec(G_OBJECT(editor), properties[PROP_ACCOUNT]);