Mercurial > pidgin.yaz
changeset 15103:37a792fc9800
[gaim-migrate @ 17888]
this is hackish, but works. Fixes 1549152.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 04 Dec 2006 03:44:42 +0000 |
parents | 9b3f844a02d7 |
children | 53f7a4a8ad2a |
files | gtk/gtkaccount.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); }