pidgin: 0f7e2c12: Avoid an assertion when setting a room t...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Fri Aug 7 01:50:31 EDT 2009


-----------------------------------------------------------------
Revision: 0f7e2c129582bcc1c93176aea316e1189ce451f7
Ancestor: 7d8b92cfcf81edf7af7562b661a9ceb7e5951469
Author: darkrain42 at pidgin.im
Date: 2009-08-07T04:21:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0f7e2c129582bcc1c93176aea316e1189ce451f7

Modified files:
        pidgin/gtkconv.c

ChangeLog: 

Avoid an assertion when setting a room topic for the first time.

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	62f0495a236c973881f8a5263926abae1dc1dc90
+++ pidgin/gtkconv.c	b3126c754a927c60dd657fdd73454f8db42861e2
@@ -4365,7 +4365,11 @@ static void topic_callback(GtkWidget *w,
 		return;
 	}
 
-	gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), current_topic);
+	if (current_topic)
+		gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), current_topic);
+	else
+		gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), "");
+
 	prpl_info->set_chat_topic(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(conv)),
 			new_topic);
 


More information about the Commits mailing list