mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
eb9e45bc20
commit
0f53b6c82f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user