# HG changeset patch # User Nathan Walp # Date 1165203882 0 # Node ID 630dc921ac69eae2edb73800075353e100977bc7 # Parent 168bfdeffed88df3b184629f74d28f12868fd18b [gaim-migrate @ 17888] this is hackish, but works. Fixes 1549152. diff -r 168bfdeffed8 -r 630dc921ac69 gtk/gtkaccount.c --- a/gtk/gtkaccount.c Mon Dec 04 02:12:53 2006 +0000 +++ b/gtk/gtkaccount.c Mon Dec 04 03:44:42 2006 +0000 @@ -136,6 +136,9 @@ GtkWidget *proxy_user_entry; GtkWidget *proxy_pass_entry; + /* Are we registering? */ + gboolean registering; + } AccountPrefsDialog; typedef struct @@ -1335,7 +1338,7 @@ gaim_signal_emit(gaim_gtk_account_get_handle(), "account-modified", account); /* If this is a new account, then sign on! */ - if (new) { + if (new && !dialog->registering) { const GaimSavedStatus *saved_status; saved_status = gaim_savedstatus_get_current(); @@ -1351,7 +1354,11 @@ static void register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) { - GaimAccount *account = ok_account_prefs_cb(NULL, dialog); + GaimAccount *account; + + dialog->registering = TRUE; + + account = ok_account_prefs_cb(NULL, dialog); gaim_account_register(account); }