r23455 - gnucash/trunk/src/import-export/aqbanking - Remove annoying extra question before overwriting transfer fields by template.

Christian Stimming cstim at code.gnucash.org
Thu Nov 28 06:35:57 EST 2013


Author: cstim
Date: 2013-11-28 06:35:57 -0500 (Thu, 28 Nov 2013)
New Revision: 23455
Trac: http://svn.gnucash.org/trac/changeset/23455

Modified:
   gnucash/trunk/src/import-export/aqbanking/dialog-ab-trans.c
Log:
Remove annoying extra question before overwriting transfer fields by template.

Modified: gnucash/trunk/src/import-export/aqbanking/dialog-ab-trans.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/dialog-ab-trans.c	2013-11-28 11:35:45 UTC (rev 23454)
+++ gnucash/trunk/src/import-export/aqbanking/dialog-ab-trans.c	2013-11-28 11:35:57 UTC (rev 23455)
@@ -922,26 +922,6 @@
     if (!new_purpose) new_purpose = "";
     if (!new_purpose_cont) new_purpose_cont = "";
 
-    /* Check for differences to avoid overwriting entered text */
-    if ((*old_name && strcmp(old_name, new_name))
-            || (*old_account && strcmp(old_account, new_account))
-            || (*old_bankcode && strcmp(old_bankcode, new_bankcode))
-            || (*old_purpose && strcmp(old_purpose, new_purpose))
-            || (*old_purpose_cont && strcmp(old_purpose_cont, new_purpose_cont))
-            || (*old_amount_text && !gnc_numeric_equal(old_amount, new_amount)))
-    {
-        if (!gnc_verify_dialog(
-                    td->parent, FALSE,
-                    _("Do you really want to overwrite your changes with the "
-                      "contents of the template \"%s\"?"),
-                    gnc_ab_trans_templ_get_name(templ)))
-        {
-
-            LEAVE("aborted");
-            return;
-        }
-    }
-
     /* Fill in */
     gtk_entry_set_text(GTK_ENTRY(td->recp_name_entry), new_name);
     gtk_entry_set_text(GTK_ENTRY(td->recp_account_entry), new_account);



More information about the gnucash-changes mailing list