gnucash master: Revert "Remove unused function and variable."

John Ralls jralls at code.gnucash.org
Sat Mar 4 20:21:22 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/abdd4d9e (commit)
	from  https://github.com/Gnucash/gnucash/commit/c0681aba (commit)



commit abdd4d9ed79e7c06091e108855c7c33e26205b23
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Mar 4 16:55:08 2023 -0800

    Revert "Remove unused function and variable."
    
    committed in error.

diff --git a/gnucash/import-export/aqb/gnc-ab-transfer.c b/gnucash/import-export/aqb/gnc-ab-transfer.c
index 5bab04d7c..3cfc1e43b 100644
--- a/gnucash/import-export/aqb/gnc-ab-transfer.c
+++ b/gnucash/import-export/aqb/gnc-ab-transfer.c
@@ -47,8 +47,25 @@
 /* This static indicates the debugging module that this .o belongs to.  */
 G_GNUC_UNUSED static QofLogModule log_module = G_LOG_DOMAIN;
 
+static void save_templates(GtkWidget *parent, Account *gnc_acc, GList *templates,
+                           gboolean dont_ask);
 static void txn_created_cb(Transaction *trans, gpointer user_data);
 
+static void
+save_templates(GtkWidget *parent, Account *gnc_acc, GList *templates,
+               gboolean dont_ask)
+{
+    g_return_if_fail(gnc_acc);
+    if (dont_ask || gnc_verify_dialog (
+                GTK_WINDOW (parent), FALSE, "%s",
+                _("You have changed the list of online transfer templates, "
+                  "but you cancelled the transfer dialog. "
+                  "Do you nevertheless want to store the changes?")))
+    {
+        gnc_ab_set_book_template_list(gnc_account_get_book(gnc_acc), templates);
+    }
+}
+
 static void
 txn_created_cb(Transaction *trans, gpointer user_data)
 {
@@ -119,6 +136,7 @@ gnc_ab_maketrans(GtkWidget *parent, Account *gnc_acc,
     {
         GncGWENGui *gui = NULL;
         gint result;
+        gboolean changed;
         const AB_TRANSACTION *ab_trans;
         GNC_AB_JOB *job = NULL;
         GNC_AB_JOB_LIST2 *job_list = NULL;



Summary of changes:
 gnucash/import-export/aqb/gnc-ab-transfer.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)



More information about the gnucash-changes mailing list