diff src/themes.c @ 8892:ed62fb44aa30

[gaim-migrate @ 9661] " This patch does two things: 1) Fixes a crash in themes.c if the smiley theme has no smileys and you attempt to get a list of them elsewhere in gaim. 2) Makes the insert smiley dialog have a little text label that says the smiley theme has no available smileys if it would otherwise contain nothing. This solution was suggested as acceptable for letting the user know there's no smileys without disabling the button, blah blah blah. You can ask me for the gory details if you want to know what I would have had to code to make it work the other way." --Kevin Stange committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 06 May 2004 14:02:06 +0000
parents fa6395637e2c
children 4d05b6e9e9cd
line wrap: on
line diff
--- a/src/themes.c	Thu May 06 12:17:17 2004 +0000
+++ b/src/themes.c	Thu May 06 14:02:06 2004 +0000
@@ -245,6 +245,9 @@
 	if(!current_smiley_theme)
 		return NULL;
 
+	if(!current_smiley_theme->list)
+		return NULL;
+
 	def = list = current_smiley_theme->list;
 
 	while(list) {