comparison 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
comparison
equal deleted inserted replaced
13138:277c7a62650b 13139:05ef36447131
6144 return; 6144 return;
6145 6145
6146 if(gaim_status_is_available(oldstatus) || !gaim_status_is_available(newstatus)) 6146 if(gaim_status_is_available(oldstatus) || !gaim_status_is_available(newstatus))
6147 return; 6147 return;
6148 6148
6149 for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { 6149 while ((l = hidden_convwin->gtkconvs) != NULL)
6150 {
6150 gtkconv = l->data; 6151 gtkconv = l->data;
6151 6152
6152 conv = gtkconv->active_conv; 6153 conv = gtkconv->active_conv;
6153 6154
6154 if(!gaim_status_is_available( 6155 if(!gaim_status_is_available(
6177 return; 6178 return;
6178 6179
6179 if(strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/im/hide_new"), "away")==0) 6180 if(strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/im/hide_new"), "away")==0)
6180 when_away = TRUE; 6181 when_away = TRUE;
6181 6182
6182 for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { 6183 while ((l = hidden_convwin->gtkconvs) != NULL)
6184 {
6183 gtkconv = l->data; 6185 gtkconv = l->data;
6184 6186
6185 conv = gtkconv->active_conv; 6187 conv = gtkconv->active_conv;
6186 6188
6187 if(when_away && !gaim_status_is_available( 6189 if(when_away && !gaim_status_is_available(