Mercurial > pidgin
diff src/gtkconv.c @ 13139:05ef36447131
[gaim-migrate @ 15501]
Fix based on SF Patch #1417668 from Sadrul
"When you have more than one queued conversations, and
you change the `Hide new IM' pref to `Never', Gaim
crashes."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 06 Feb 2006 08:13:35 +0000 |
parents | 277c7a62650b |
children | 21ee457d479c |
line wrap: on
line diff
--- a/src/gtkconv.c Mon Feb 06 08:06:53 2006 +0000 +++ b/src/gtkconv.c Mon Feb 06 08:13:35 2006 +0000 @@ -6146,7 +6146,8 @@ if(gaim_status_is_available(oldstatus) || !gaim_status_is_available(newstatus)) return; - for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { + while ((l = hidden_convwin->gtkconvs) != NULL) + { gtkconv = l->data; conv = gtkconv->active_conv; @@ -6179,7 +6180,8 @@ if(strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/im/hide_new"), "away")==0) when_away = TRUE; - for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { + while ((l = hidden_convwin->gtkconvs) != NULL) + { gtkconv = l->data; conv = gtkconv->active_conv;