[gaim-migrate @ 17888]

Mon, 04 Dec 2006 03:44:42 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Mon, 04 Dec 2006 03:44:42 +0000
changeset 15164
630dc921ac69
parent 15163
168bfdeffed8
child 15165
0ff631dfbbca

[gaim-migrate @ 17888]
this is hackish, but works. Fixes 1549152.

gtk/gtkaccount.c file | annotate | diff | comparison | revisions
--- 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);
 }

mercurial