mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
10ab87d95c
commit
d4476d06b4
@ -1282,10 +1282,14 @@ create_transactions_for_instance(GncSxInstance *instance, GList **created_txn_gu
|
|||||||
creation_data.instance = instance;
|
creation_data.instance = instance;
|
||||||
creation_data.created_txn_guids = created_txn_guids;
|
creation_data.created_txn_guids = created_txn_guids;
|
||||||
creation_data.creation_errors = creation_errors;
|
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,
|
xaccAccountForEachTransaction(sx_template_account,
|
||||||
create_each_transaction_helper,
|
create_each_transaction_helper,
|
||||||
&creation_data);
|
&creation_data);
|
||||||
|
qof_event_resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user