Mercurial > pidgin
changeset 15240:7ce73985115a
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 20 Dec 2006 09:35:24 +0000 |
parents | 30932055bb7c |
children | 1b5cd588c1ee |
files | gtk/gtkutils.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"),