From: <fac...@us...> - 2006-12-04 03:44:43
|
Revision: 17888 http://svn.sourceforge.net/gaim/?rev=17888&view=rev Author: faceprint Date: 2006-12-03 19:44:42 -0800 (Sun, 03 Dec 2006) Log Message: ----------- this is hackish, but works. Fixes 1549152. Modified Paths: -------------- trunk/gtk/gtkaccount.c Modified: trunk/gtk/gtkaccount.c =================================================================== --- trunk/gtk/gtkaccount.c 2006-12-04 02:12:53 UTC (rev 17887) +++ trunk/gtk/gtkaccount.c 2006-12-04 03:44:42 UTC (rev 17888) @@ -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,8 +1354,12 @@ 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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |