mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge Bob Fewel's 'bug798990' into stable.
This commit is contained in:
@@ -354,6 +354,10 @@ update_info (SRInfo* info, SplitRegister* reg)
|
|||||||
gnc_split_register_get_current_trans_split (reg, NULL);
|
gnc_split_register_get_current_trans_split (reg, NULL);
|
||||||
info->cursor_hint_cursor_class =
|
info->cursor_hint_cursor_class =
|
||||||
gnc_split_register_get_current_cursor_class (reg);
|
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->hint_set_by_traverse = FALSE;
|
||||||
info->traverse_to_new = FALSE;
|
info->traverse_to_new = FALSE;
|
||||||
info->exact_traversal = 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,
|
/* On first load the split list is empty so fill up the quickfill cells
|
||||||
* fill up the quickfill cells. */
|
* only on the next load. */
|
||||||
if (info->first_pass)
|
if (!info->first_pass && !info->quickfill_setup)
|
||||||
add_quickfill_completions (reg->table->layout, trans, split, has_last_num);
|
add_quickfill_completions (reg->table->layout, trans, split, has_last_num);
|
||||||
|
|
||||||
gnc_completion_cell_add_menu_item (
|
gnc_completion_cell_add_menu_item (
|
||||||
(CompletionCell*) gnc_table_layout_get_cell (reg->table->layout, DESC_CELL),
|
(CompletionCell*) gnc_table_layout_get_cell (reg->table->layout, DESC_CELL),
|
||||||
xaccTransGetDescription (trans));
|
xaccTransGetDescription (trans));
|
||||||
|
|
||||||
|
|
||||||
if (trans == find_trans)
|
if (trans == find_trans)
|
||||||
new_trans_row = vcell_loc.virt_row;
|
new_trans_row = vcell_loc.virt_row;
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,9 @@ struct sr_info
|
|||||||
/** true if we are loading the register for the first time */
|
/** true if we are loading the register for the first time */
|
||||||
gboolean first_pass;
|
gboolean first_pass;
|
||||||
|
|
||||||
|
/** true if we have setup the quickfills */
|
||||||
|
gboolean quickfill_setup;
|
||||||
|
|
||||||
/** true if the user has already confirmed changes of a reconciled
|
/** true if the user has already confirmed changes of a reconciled
|
||||||
* split */
|
* split */
|
||||||
gboolean change_confirmed;
|
gboolean change_confirmed;
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ gnc_split_register_init_info (SplitRegister *reg)
|
|||||||
info->last_date_entered = gnc_time64_get_today_start ();
|
info->last_date_entered = gnc_time64_get_today_start ();
|
||||||
|
|
||||||
info->first_pass = TRUE;
|
info->first_pass = TRUE;
|
||||||
|
info->quickfill_setup = FALSE;
|
||||||
info->full_refresh = TRUE;
|
info->full_refresh = TRUE;
|
||||||
info->separator_changed = TRUE;
|
info->separator_changed = TRUE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user