# HG changeset patch # User Mark Doliner # Date 1166607324 0 # Node ID 7ce73985115a23a25952c523221a6ea41ddbcfed # Parent 30932055bb7c06b32440dd8c5472df0373a261ae [gaim-migrate @ 18030] Fix a rather large oversight on my part: I wasn't allowing people to set icons at all for protocols that didn't have a max icon file size. committer: Tailor Script diff -r 30932055bb7c -r 7ce73985115a gtk/gtkutils.c --- a/gtk/gtkutils.c Wed Dec 20 09:31:11 2006 +0000 +++ b/gtk/gtkutils.c Wed Dec 20 09:35:24 2006 +0000 @@ -2646,7 +2646,8 @@ * the prpl supported jpeg, and then we could convert to that * and use a lower quality setting. */ - if (st.st_size > prpl_info->icon_spec.max_filesize) + if ((prpl_info->icon_spec.max_filesize != 0) && + (st.st_size > prpl_info->icon_spec.max_filesize)) { gchar *tmp; tmp = g_strdup_printf(_("The file '%s' is too large for %s. Please try a smaller image.\n"),