diff pidgin/plugins/notify.c @ 27681:37b668b8d6c1

Fix a crash with the Message Notification plugin and the 'hidden' gtkconv So I was finally able to reproduce this. "Close IMs immediately" was disabled and in the Message Notification plugin's settings, everything is disabled except "[Notify for ]IM windows" and "Present conversation window". In my testing, this did not prevent the conversation from re-attaching when a new message comes on. Fixes #8911.
author Paul Aurich <paul@darkrain42.org>
date Sat, 18 Jul 2009 05:08:25 +0000
parents 533d37757363
children 4e7a9940627e
line wrap: on
line diff
--- a/pidgin/plugins/notify.c	Sat Jul 18 04:06:48 2009 +0000
+++ b/pidgin/plugins/notify.c	Sat Jul 18 05:08:25 2009 +0000
@@ -572,6 +572,9 @@
 static void
 handle_present(PurpleConversation *conv)
 {
+	if (pidgin_conv_is_hidden(PIDGIN_CONVERSATION(conv)))
+		return;
+
 	purple_conversation_present(conv);
 }