diff options
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-model.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index fcf945259a..2281339a47 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -341,7 +341,7 @@ e_select_names_model_delete (ESelectNamesModel *model, gchar *temp = g_strdup_printf("%.*s%s", index, node->string, node->string + index + length); g_free(node->string); node->string = temp; - length = 0; + break; } if (length > 0) { @@ -353,6 +353,7 @@ e_select_names_model_delete (ESelectNamesModel *model, node2->string = temp; e_iterator_prev(iterator); e_iterator_delete(iterator); + length --; } } } |