mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Recalculate type-ahead search when deleting.
This commit is contained in:
parent
f4b0b36a3a
commit
027d1f2751
@ -620,18 +620,19 @@ gnc_combo_cell_modify_verify (BasicCell* _cell,
|
||||
return;
|
||||
}
|
||||
|
||||
// If we were deleting or inserting in the middle, just accept.
|
||||
if (change == NULL || *cursor_position < _cell->value_chars)
|
||||
{
|
||||
gnc_basic_cell_set_value_internal (_cell, newval);
|
||||
return;
|
||||
}
|
||||
|
||||
/* If item_list is using temp then we're already partly matched by
|
||||
* type-ahead and a quickfill_match won't work.
|
||||
*/
|
||||
if (!gnc_item_list_using_temp (box->item_list))
|
||||
{
|
||||
// If we were deleting or inserting in the middle, just accept.
|
||||
if (change == NULL || *cursor_position < _cell->value_chars)
|
||||
{
|
||||
gnc_basic_cell_set_value_internal (_cell, newval);
|
||||
return;
|
||||
}
|
||||
match_str = quickfill_match (box->qf, newval);
|
||||
}
|
||||
|
||||
if (match_str != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user