changeset 29647:12c01afbb0ea

NULL-check for conversation when updating attention button
author Marcus Lundblad <ml@update.uu.se>
date Wed, 29 Oct 2008 21:35:39 +0000
parents 9e07b1c14075
children 9c928fb69ace 0caae32d570d
files pidgin/gtkimhtmltoolbar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtmltoolbar.c	Wed Oct 29 21:33:36 2008 +0000
+++ b/pidgin/gtkimhtmltoolbar.c	Wed Oct 29 21:35:39 2008 +0000
@@ -1571,7 +1571,7 @@
 	/* gray out attention button on protocols that don't support it
 	 for the time being it is always disabled for chats */
 	gtk_widget_set_sensitive(toolbar->attention,
-		conv && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && 
-							 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL);
+		conv && prpl && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && 
+		PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL);
 }