Speed-up of txn match dialog: Suspend GUI refresh during deletion of selected lines.

This gives a significant speed-up when selecting multiple lines for deletion.
Otherwise the full GUI refresh would be run for each single selected
line, which sucks if the accounts and register windows contain a lot
of txns. Better do that once after we are finished with all line deletions.
This commit is contained in:
Christian Stimming 2019-01-01 13:27:00 +01:00
parent eb9e45bc20
commit 0f53b6c82f

View File

@ -230,6 +230,9 @@ gnc_imap_dialog_delete (ImapDialog *imap_dialog)
// reverse list
list = g_list_reverse (list);
// Suspend GUI refreshing
gnc_suspend_gui_refresh();
// Walk the list
for (row = g_list_first (list); row; row = g_list_next (row))
{
@ -240,6 +243,9 @@ gnc_imap_dialog_delete (ImapDialog *imap_dialog)
g_list_free (list);
get_account_info (imap_dialog);
// Enable GUI refresh again
gnc_resume_gui_refresh();
}
void