Mercurial > pidgin
comparison src/gtkblist.c @ 12458:8626cc8d0df9
[gaim-migrate @ 14767]
Don't allow adding a group with an empty name. We should probably
not allow this in the GUI, too. This is better than nothing, though.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 12 Dec 2005 05:58:56 +0000 |
parents | a25babbba950 |
children | 27671f780081 |
comparison
equal
deleted
inserted
replaced
12457:e585695bc16b | 12458:8626cc8d0df9 |
---|---|
4809 static void | 4809 static void |
4810 add_group_cb(GaimConnection *gc, const char *group_name) | 4810 add_group_cb(GaimConnection *gc, const char *group_name) |
4811 { | 4811 { |
4812 GaimGroup *group; | 4812 GaimGroup *group; |
4813 | 4813 |
4814 if ((group_name == NULL) || (*group_name == '\0')) | |
4815 return; | |
4816 | |
4814 group = gaim_group_new(group_name); | 4817 group = gaim_group_new(group_name); |
4815 gaim_blist_add_group(group, NULL); | 4818 gaim_blist_add_group(group, NULL); |
4816 } | 4819 } |
4817 | 4820 |
4818 static void | 4821 static void |