From d4379644c201527e83d83b443d7cda54713513bd Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Thu, 29 Aug 2019 11:29:23 +0100 Subject: [PATCH] Stop duplicate entries for the invoice taxtable cell When the ledger is loaded, the list for the taxtable combo is created but as the item_list gui is not initialised yet a temporary list store is used. This is done twice and hence end up with duplicate entries. To fix this add the missing gtk_list_store_clear to gnc_combo_cell_clear_menu to clear the temporary list store when the item_list is not initialised. --- gnucash/register/register-gnome/combocell-gnome.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnucash/register/register-gnome/combocell-gnome.c b/gnucash/register/register-gnome/combocell-gnome.c index fc8120d8fa..eda565a64e 100644 --- a/gnucash/register/register-gnome/combocell-gnome.c +++ b/gnucash/register/register-gnome/combocell-gnome.c @@ -381,6 +381,8 @@ gnc_combo_cell_clear_menu (ComboCell * cell) unblock_list_signals (cell); } + else + gtk_list_store_clear (box->tmp_store); } void