From 458dac89feb9ddf02e015ae7c8bfcac74e88b760 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Mon, 26 Nov 2018 17:24:46 +0000 Subject: [PATCH] Bug 779565 - Treeview header combos do not work at first load When the csv preview page is first loaded the header combo will not work till refreshed which can be done by selecting another separator. By adding a g_idle_add to the preview_page_prepare to rebuild the table the combos become active. --- gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp b/gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp index 8d9c9c5f12..26fd355300 100644 --- a/gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp +++ b/gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp @@ -1890,7 +1890,7 @@ CsvImpTransAssist::assist_preview_page_prepare () gtk_assistant_set_page_complete (csv_imp_asst, preview_page, false); /* Load the data into the treeview. */ - preview_refresh_table (); + g_idle_add ((GSourceFunc)csv_imp_preview_queue_rebuild_table, this); } }