src/prpl.c

changeset 2428
25fc293837e2
parent 2417
7751d1269b09
child 2541
0afd3aaba327
--- 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);
 }

mercurial