diff src/gtkblist.c @ 13730:2eea3265dbe6

[gaim-migrate @ 16141] Correctly remove the disconnected button when the account successfully connections. This might have only been a problem when the account wanted_to_die committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 07 May 2006 18:04:24 +0000
parents 5fb687f9965c
children 7925c5d81ecf
line wrap: on
line diff
--- a/src/gtkblist.c	Sun May 07 17:40:42 2006 +0000
+++ b/src/gtkblist.c	Sun May 07 18:04:24 2006 +0000
@@ -3527,28 +3527,21 @@
 	GaimAccount *account;
 	char *primary;
 	const char *text;
+	gboolean enabled;
 
 	account = user_data;
 	primary = g_strdup_printf(_("%s disconnected"),
 							  gaim_account_get_username(account));
 	text = g_hash_table_lookup(gtkblist->connection_errors, account);
 
-	if (gaim_account_is_connected(account))
-	{
-		gaim_notify_formatted(NULL, _("Connection Error"),
-							  primary, NULL, text, NULL, NULL);
-	}
-	else
-	{
-		gboolean enabled = gaim_account_get_enabled(account, gaim_core_get_ui());
-		gaim_request_action(account, _("Connection Error"), primary, text, 2,
-							account, 3,
-							_("OK"), NULL,
-							_("Modify Account"), GAIM_CALLBACK(ce_modify_account_cb),
-							enabled ? _("Connect") : _("Re-enable Account"),
-							enabled ? GAIM_CALLBACK(gaim_account_connect) :
-										GAIM_CALLBACK(ce_enable_account_cb));
-	}
+	enabled = gaim_account_get_enabled(account, gaim_core_get_ui());
+	gaim_request_action(account, _("Connection Error"), primary, text, 2,
+						account, 3,
+						_("OK"), NULL,
+						_("Modify Account"), GAIM_CALLBACK(ce_modify_account_cb),
+						enabled ? _("Connect") : _("Re-enable Account"),
+						enabled ? GAIM_CALLBACK(gaim_account_connect) :
+									GAIM_CALLBACK(ce_enable_account_cb));
 	g_free(primary);
 	gtk_widget_destroy(GTK_WIDGET(widget));
 	g_hash_table_remove(gtkblist->connection_errors, account);