changeset 1841:93f0629d4099

[gaim-migrate @ 1851] whoops. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 12 May 2001 06:38:25 +0000
parents 00aef397a1fe
children 1d137dde946f
files src/dialogs.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Sat May 12 01:38:04 2001 +0000
+++ b/src/dialogs.c	Sat May 12 06:38:25 2001 +0000
@@ -3760,12 +3760,14 @@
 	char *new_name;
 	struct group *g;
 	struct group *orig;
+	struct gaim_connection *gc;
 
 	new_name = gtk_entry_get_text(GTK_ENTRY(entry));
 	g = gtk_object_get_user_data(obj);
 
 	if (new_name && (strlen(new_name) != 0) && strcmp(new_name, g->name)) {
 		char *prevname;
+		gc = g->gc;
 		if ((orig = find_group(g->gc, new_name)) != NULL) {
 			orig->members = g_slist_concat(orig->members, g->members);
 			handle_group_rename(orig, g->name);
@@ -3778,7 +3780,7 @@
 			handle_group_rename(g, prevname);
 			g_free(prevname);
 		}
-		do_export(g->gc);
+		do_export(gc);
 	}
 
 	destroy_dialog(rename_dialog, rename_dialog);