Mercurial > pidgin
diff src/gtkconv.c @ 13350:7c8f03ad0e8e
[gaim-migrate @ 15722]
(19:22:30) slowhog_work: got a small patch to fix the segfault caused by a protocol doesn't not support chat topic
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 01 Mar 2006 02:10:41 +0000 |
parents | 3955245c82f6 |
children | 475214c22abf |
line wrap: on
line diff
--- a/src/gtkconv.c Tue Feb 28 23:38:48 2006 +0000 +++ b/src/gtkconv.c Wed Mar 01 02:10:41 2006 +0000 @@ -5576,11 +5576,14 @@ GaimConvChat *chat = GAIM_CONV_CHAT(conv); GaimGtkChatPane *gtkchat = gtkconv->u.chat; - topic = gaim_conv_chat_get_topic(chat); - - gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), topic ? topic : ""); - gtk_tooltips_set_tip(gtkconv->tooltips, gtkchat->topic_text, - topic ? topic : "", NULL); + if (gtkchat->topic_text != NULL) + { + topic = gaim_conv_chat_get_topic(chat); + + gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), topic ? topic : ""); + gtk_tooltips_set_tip(gtkconv->tooltips, gtkchat->topic_text, + topic ? topic : "", NULL); + } } if (fields & GAIM_GTKCONV_SMILEY_THEME)