AUDIT: r22929 - gnucash/trunk/src/import-export - Finally fix the maddening long waiting times after clicking "Ok" in the import matcher window.
Christian Stimming
cstim at code.gnucash.org
Wed Apr 24 05:08:32 EDT 2013
Author: cstim
Date: 2013-04-24 05:08:31 -0400 (Wed, 24 Apr 2013)
New Revision: 22929
Trac: http://svn.gnucash.org/trac/changeset/22929
Modified:
gnucash/trunk/src/import-export/import-main-matcher.c
Log:
Finally fix the maddening long waiting times after clicking "Ok" in the import matcher window.
Turns out we were simply missing a suspend_gui_refresh call before actually
processing the results. Sigh.
(Can go into 2.4 because the bugfix is so surprisingly simple.)
BP
Modified: gnucash/trunk/src/import-export/import-main-matcher.c
===================================================================
--- gnucash/trunk/src/import-export/import-main-matcher.c 2013-04-22 19:23:05 UTC (rev 22928)
+++ gnucash/trunk/src/import-export/import-main-matcher.c 2013-04-24 09:08:31 UTC (rev 22929)
@@ -48,6 +48,7 @@
#include "import-match-picker.h"
#include "import-backend.h"
#include "import-account-matcher.h"
+#include "app-utils/gnc-component-manager.h"
#define GCONF_SECTION "dialogs/import/generic_matcher/transaction_list"
@@ -164,6 +165,10 @@
if (!gtk_tree_model_get_iter_first(model, &iter))
return;
+ /* Don't run any queries and/or split sorts while processing the matcher
+ results. */
+ gnc_suspend_gui_refresh();
+
do
{
gtk_tree_model_get(model, &iter,
@@ -187,6 +192,9 @@
}
while (gtk_tree_model_iter_next (model, &iter));
+ /* Allow GUI refresh again. */
+ gnc_resume_gui_refresh();
+
gnc_gen_trans_list_delete (info);
/* DEBUG ("End") */
}
More information about the gnucash-changes
mailing list