Block events while creating scheduled transactions.

Events update the UI, which is slow, and if there are a lot of SXes
because it's an old file that can be significant.
This commit is contained in:
John Ralls 2018-02-24 13:02:50 -08:00
parent 10ab87d95c
commit d4476d06b4

View File

@ -1282,10 +1282,14 @@ create_transactions_for_instance(GncSxInstance *instance, GList **created_txn_gu
creation_data.instance = instance;
creation_data.created_txn_guids = created_txn_guids;
creation_data.creation_errors = creation_errors;
/* Don't update the GUI for every transaction, it can really slow things
* down.
*/
qof_event_suspend();
xaccAccountForEachTransaction(sx_template_account,
create_each_transaction_helper,
&creation_data);
qof_event_resume();
}
void