+ else
+ {
+ gboolean added;
+ Payee *pay = NULL;
+
+ if( nbcol >= 1 )
+ {
+ DB( g_print(" add pay:'%s' ?\n", str_array[0]) );
+ added = payee_append_if_new(str_array[0], &pay);
+ if( added )
+ {
+ DB( g_print(" added: %p\n", pay) );
+ GLOBALS->changes_count++;
+ }
+ }
+
+ if( nbcol == 2 )
+ {
+ Category *cat;
+
+ DB( g_print(" add cat:'%s'\n", str_array[1]) );
+ cat = da_cat_append_ifnew_by_fullname(str_array[1], FALSE);
+
+ DB( g_print(" cat: %p %p\n", cat, pay) );
+ if( cat != NULL )
+ {
+ if( pay != NULL)
+ {
+ DB( g_print(" set default cat to %d\n", cat->key) );
+ pay->kcat = cat->key;
+ }
+ GLOBALS->changes_count++;
+ }
+ }
+ }
+ g_strfreev (str_array);