# HG changeset patch
# User Eric Warmenhoven <eric@warmenhoven.org>
# Date 964485231 0
# Node ID 11cbf8b403b657a900c9fb62b676757053166719
# Parent  0f179ac59e27ab3acebe4a688927006a126ed084
[gaim-migrate @ 532]
If the window goes away, the config button gets disconnected. Set handler to 0.

committer: Tailor Script <tailor@pidgin.im>

diff -r 0f179ac59e27 -r 11cbf8b403b6 src/plugins.c
--- a/src/plugins.c	Mon Jul 24 23:42:48 2000 +0000
+++ b/src/plugins.c	Tue Jul 25 00:33:51 2000 +0000
@@ -465,7 +465,7 @@
 	void (*gaim_plugin_config)();
 	char *error;
 
-	if (confighandle)
+	if (confighandle != 0)
 		gtk_signal_disconnect(GTK_OBJECT(config), confighandle);
 	text_len = gtk_text_get_length(GTK_TEXT(plugtext));
 	gtk_text_set_point(GTK_TEXT(plugtext), 0);
@@ -490,6 +490,7 @@
 		gtk_widget_destroy(plugwindow);
 	plugwindow = NULL;
 	config = NULL;
+	confighandle = 0;
 }
 
 void gaim_signal_connect(void *handle, enum gaim_event which,