diff --git a/gnucash/import-export/aqb/gnc-ab-transfer.c b/gnucash/import-export/aqb/gnc-ab-transfer.c index 5bab04d7cf..3cfc1e43b6 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;