r17971 - gnucash/trunk/src/business/business-ledger - Business ledger: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.

Charles Day cedayiv at cvs.gnucash.org
Wed Mar 4 10:31:22 EST 2009


Author: cedayiv
Date: 2009-03-04 10:31:22 -0500 (Wed, 04 Mar 2009)
New Revision: 17971
Trac: http://svn.gnucash.org/trac/changeset/17971

Modified:
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c
Log:
Business ledger: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.


Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c	2009-03-03 22:48:18 UTC (rev 17970)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c	2009-03-04 15:31:22 UTC (rev 17971)
@@ -337,8 +337,10 @@
       break;
 
     /* Create the account if necessary. Also checks for a placeholder */
-    (void) gnc_entry_ledger_get_account_by_name (ledger, (BasicCell *)cell, cell->cell.value,
-						 &ledger->full_refresh);
+    if (!gnc_entry_ledger_get_account_by_name (ledger, (BasicCell *) cell,
+                                               cell->cell.value,
+                                               &ledger->full_refresh))
+      return TRUE;
 
   } while (FALSE);
 



More information about the gnucash-changes mailing list