diff src/prpl.c @ 2428:0394552f2aab

[gaim-migrate @ 2441] one bug down, several to go. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 04 Oct 2001 23:10:51 +0000
parents 5473c8c5378d
children 8229710b343b
line wrap: on
line diff
--- a/src/prpl.c	Thu Oct 04 19:36:49 2001 +0000
+++ b/src/prpl.c	Thu Oct 04 23:10:51 2001 +0000
@@ -362,7 +362,11 @@
 
 static void des_email_win(GtkWidget *w, struct mail_notify *mn)
 {
-	gtk_widget_destroy(mn->email_win);
+	if (w != mn->email_win) {
+		gtk_widget_destroy(mn->email_win);
+		return;
+	}
+	debug_printf("removing mail notification\n");
 	mailnots = g_slist_remove(mailnots, mn);
 	g_free(mn);
 }