changeset 10862:885377f484b7

[gaim-migrate @ 12545] Checking the "enabled" box in the accounts window will sign on the account, now. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 24 Apr 2005 20:38:36 +0000
parents 42c16b293867
children f289e9f76053
files src/account.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Sun Apr 24 19:52:29 2005 +0000
+++ b/src/account.c	Sun Apr 24 20:38:36 2005 +0000
@@ -1086,6 +1086,8 @@
 	g_return_if_fail(ui      != NULL);
 
 	gaim_account_set_ui_bool(account, ui, "auto-login", value);
+	if (gaim_presence_is_online(account->presence))
+		gaim_account_connect(account);
 }
 
 void
@@ -1154,11 +1156,14 @@
 		return;
 	}
 
-	/* Our current statuses are saved to accounts.xml */
-	schedule_accounts_save();
-
 	if (active || gaim_status_is_independent(status))
 		gaim_status_set_active_with_attrs(status, active, args);
+
+	/*
+	 * Our current statuses are saved to accounts.xml (so that when we
+	 * reconnect, we go back to the previous status).
+	 */
+	schedule_accounts_save();
 }
 
 void