# HG changeset patch # User Nathan Walp # Date 1165203882 0 # Node ID 37a792fc9800a1e475a02fcb822d6695d8fda5a8 # Parent 9b3f844a02d72c778e46340b314d9f81a967e9b3 [gaim-migrate @ 17888] this is hackish, but works. Fixes 1549152. committer: Tailor Script diff -r 9b3f844a02d7 -r 37a792fc9800 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); }