changeset 1918:fe79493094e7

[gaim-migrate @ 1928] stupidity committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 29 May 2001 23:51:16 +0000
parents b1e3b9febac7
children 4dcaa4afc6c0
files src/buddy.c src/conversation.c src/multi.c src/server.c
diffstat 4 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Tue May 29 22:28:18 2001 +0000
+++ b/src/buddy.c	Tue May 29 23:51:16 2001 +0000
@@ -485,8 +485,10 @@
 	update_keepalive(gc, FALSE);
 	serv_close(gc);
 	redo_buddy_list();
+	build_edit_tree();
 	do_away_menu();
 	do_proto_menu();
+	redo_convo_menus();
 #ifdef USE_APPLET
 	if (connections)
 		set_user_state(online);
--- a/src/conversation.c	Tue May 29 22:28:18 2001 +0000
+++ b/src/conversation.c	Tue May 29 23:51:16 2001 +0000
@@ -1864,7 +1864,7 @@
 
 		create_convo_menu(C);
 
-		if (g_slist_index(connections, C->gc) < 0)
+		if (g_slist_index(connections, C->gc) >= 0)
 			continue;
 
 		set_convo_gc(C, connections ? connections->data : NULL);
@@ -1876,7 +1876,7 @@
 	if (c->gc == gc)
 		return;
 
-	if (c->gc && c->gc->prpl && c->gc->prpl->remove_convo)
+	if (c->gc && g_slist_find(connections, c->gc) && c->gc->prpl && c->gc->prpl->remove_convo)
 		(*c->gc->prpl->remove_convo)(c->gc, c);
 
 	c->gc = gc;
--- a/src/multi.c	Tue May 29 22:28:18 2001 +0000
+++ b/src/multi.c	Tue May 29 23:51:16 2001 +0000
@@ -96,7 +96,6 @@
 		g_free(m);
 	}
 	g_free(gc);
-	redo_convo_menus();
 #ifndef USE_APPLET
 	if (!connections && mainwindow)
 		gtk_widget_show(mainwindow);
@@ -767,7 +766,6 @@
 		return;
 	i = gtk_clist_find_row_from_data(GTK_CLIST(list), gc->user);
 	gtk_clist_set_text(GTK_CLIST(list), i, 1, "No");
-	redo_convo_menus();
 }
 
 void auto_login()
--- a/src/server.c	Tue May 29 22:28:18 2001 +0000
+++ b/src/server.c	Tue May 29 23:51:16 2001 +0000
@@ -83,7 +83,6 @@
 
 	account_offline(gc);
 	destroy_gaim_conn(gc);
-	build_edit_tree();
 }
 
 void serv_touch_idle(struct gaim_connection *gc)