gnucash maint: Speed-up of txn match dialog: Suspend GUI refresh during deletion of selected lines.
Christian Stimming
cstim at code.gnucash.org
Tue Jan 1 07:28:35 EST 2019
Updated via https://github.com/Gnucash/gnucash/commit/0f53b6c8 (commit)
from https://github.com/Gnucash/gnucash/commit/eb9e45bc (commit)
commit 0f53b6c82f6b0c4d9b9a5c2a4f4c7434391ba723
Author: Christian Stimming <christian at cstimming.de>
Date: Tue Jan 1 13:27:00 2019 +0100
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.
diff --git a/gnucash/gnome/dialog-imap-editor.c b/gnucash/gnome/dialog-imap-editor.c
index 5d43e2e..e140f62 100644
--- a/gnucash/gnome/dialog-imap-editor.c
+++ b/gnucash/gnome/dialog-imap-editor.c
@@ -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
Summary of changes:
gnucash/gnome/dialog-imap-editor.c | 6 ++++++
1 file changed, 6 insertions(+)
More information about the gnucash-changes
mailing list