# HG changeset patch # User Paul Aurich # Date 1249618911 0 # Node ID d1040bb86b6a1dc11a1e6d6475c9bd9aa53c3b14 # Parent 6183fc8c0533a69fdb861f3362f7cea14c643afc Avoid an assertion when setting a room topic for the first time. diff -r 6183fc8c0533 -r d1040bb86b6a pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Aug 07 03:01:22 2009 +0000 +++ b/pidgin/gtkconv.c Fri Aug 07 04:21:51 2009 +0000 @@ -4365,7 +4365,11 @@ 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);