Merge Bob Fewel's 'bug798990' into stable.

This commit is contained in:
John Ralls 2023-09-10 12:22:38 -07:00
commit a8c20604ab
3 changed files with 11 additions and 4 deletions

View File

@ -354,6 +354,10 @@ update_info (SRInfo* info, SplitRegister* reg)
gnc_split_register_get_current_trans_split (reg, NULL);
info->cursor_hint_cursor_class =
gnc_split_register_get_current_cursor_class (reg);
if (!info->first_pass && !info->quickfill_setup)
info->quickfill_setup = TRUE;
info->hint_set_by_traverse = FALSE;
info->traverse_to_new = FALSE;
info->exact_traversal = FALSE;
@ -746,16 +750,15 @@ gnc_split_register_load (SplitRegister* reg, GList* slist,
}
}
/* If this is the first load of the register,
* fill up the quickfill cells. */
if (info->first_pass)
/* On first load the split list is empty so fill up the quickfill cells
* only on the next load. */
if (!info->first_pass && !info->quickfill_setup)
add_quickfill_completions (reg->table->layout, trans, split, has_last_num);
gnc_completion_cell_add_menu_item (
(CompletionCell*) gnc_table_layout_get_cell (reg->table->layout, DESC_CELL),
xaccTransGetDescription (trans));
if (trans == find_trans)
new_trans_row = vcell_loc.virt_row;

View File

@ -100,6 +100,9 @@ struct sr_info
/** true if we are loading the register for the first time */
gboolean first_pass;
/** true if we have setup the quickfills */
gboolean quickfill_setup;
/** true if the user has already confirmed changes of a reconciled
* split */
gboolean change_confirmed;

View File

@ -55,6 +55,7 @@ gnc_split_register_init_info (SplitRegister *reg)
info->last_date_entered = gnc_time64_get_today_start ();
info->first_pass = TRUE;
info->quickfill_setup = FALSE;
info->full_refresh = TRUE;
info->separator_changed = TRUE;