comparison pidgin/gtkblist.c @ 20161:0077c1f21f3d

Patch from db42. Fixes #3191
author Sean Egan <seanegan@gmail.com>
date Tue, 18 Sep 2007 23:22:13 +0000
parents f76246d669c6
children 1971e13bb5f6
comparison
equal deleted inserted replaced
20160:b6517519d719 20161:0077c1f21f3d
5680 grp = pidgin_text_combo_box_entry_get_text(data->combo); 5680 grp = pidgin_text_combo_box_entry_get_text(data->combo);
5681 whoalias = gtk_entry_get_text(GTK_ENTRY(data->entry_for_alias)); 5681 whoalias = gtk_entry_get_text(GTK_ENTRY(data->entry_for_alias));
5682 if (*whoalias == '\0') 5682 if (*whoalias == '\0')
5683 whoalias = NULL; 5683 whoalias = NULL;
5684 5684
5685 if ((g = purple_find_group(grp)) == NULL) 5685 g = NULL;
5686 if ((grp != NULL) && (*grp != '\0') && ((g = purple_find_group(grp)) == NULL))
5686 { 5687 {
5687 g = purple_group_new(grp); 5688 g = purple_group_new(grp);
5688 purple_blist_add_group(g, NULL); 5689 purple_blist_add_group(g, NULL);
5689 } 5690 }
5690 5691
5890 gtk_entry_get_text(GTK_ENTRY(data->alias_entry)), 5891 gtk_entry_get_text(GTK_ENTRY(data->alias_entry)),
5891 components); 5892 components);
5892 5893
5893 group_name = pidgin_text_combo_box_entry_get_text(data->group_combo); 5894 group_name = pidgin_text_combo_box_entry_get_text(data->group_combo);
5894 5895
5895 if ((group = purple_find_group(group_name)) == NULL) 5896 group = NULL;
5897 if ((group_name != NULL) && (*group_name != '\0') && ((group = purple_find_group(group_name)) == NULL))
5896 { 5898 {
5897 group = purple_group_new(group_name); 5899 group = purple_group_new(group_name);
5898 purple_blist_add_group(group, NULL); 5900 purple_blist_add_group(group, NULL);
5899 } 5901 }
5900 5902