changeset 5637:69c92ae58876

[gaim-migrate @ 6044] online/offline toggle in accounts works again committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 01 Jun 2003 16:17:15 +0000
parents 11233ca9f533
children 0bdfa28c678e
files src/gtkaccount.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Sun Jun 01 16:11:05 2003 +0000
+++ b/src/gtkaccount.c	Sun Jun 01 16:17:15 2003 +0000
@@ -277,11 +277,13 @@
 	GaimAccount *account;
 	GtkTreeModel *model = GTK_TREE_MODEL(dialog->model);
 	GtkTreeIter iter;
+	gboolean online;
 
 	gtk_tree_model_get_iter_from_string(model, &iter, path_str);
-	gtk_tree_model_get(model, &iter, COLUMN_DATA, &account, -1);
+	gtk_tree_model_get(model, &iter, COLUMN_DATA, &account,
+			COLUMN_ONLINE, &online, -1);
 
-	if (gaim_account_is_connected(account))
+	if (online)
 		gaim_account_disconnect(account);
 	else
 		gaim_account_connect(account);