changeset 26580:246081d2d990

Activate the current status for an account being enabled
author Richard Nelson <wabz@pidgin.im>
date Mon, 06 Apr 2009 10:31:17 +0000
parents 65f9a5e37b31
children 5617edc6c7a5
files finch/gntaccount.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntaccount.c	Mon Apr 06 10:30:25 2009 +0000
+++ b/finch/gntaccount.c	Mon Apr 06 10:31:17 2009 +0000
@@ -669,8 +669,13 @@
 account_toggled(GntWidget *widget, void *key, gpointer null)
 {
 	PurpleAccount *account = key;
+	gboolean enabled = gnt_tree_get_choice(GNT_TREE(widget), key);
 
-	purple_account_set_enabled(account, FINCH_UI, gnt_tree_get_choice(GNT_TREE(widget), key));
+	if (enabled)
+		purple_savedstatus_activate_for_account(purple_savedstatus_get_current(),
+												account);
+
+	purple_account_set_enabled(account, FINCH_UI, enabled);
 }
 
 static gboolean