From 5456ef6eba98cd5fe1f4a4c7488c25bd68f08691 Mon Sep 17 00:00:00 2001 From: Charles Day Date: Wed, 4 Mar 2009 15:31:22 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17971 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-ledger/gncEntryLedgerControl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/business/business-ledger/gncEntryLedgerControl.c b/src/business/business-ledger/gncEntryLedgerControl.c index 09c12e592f..d55123a3cd 100644 --- a/src/business/business-ledger/gncEntryLedgerControl.c +++ b/src/business/business-ledger/gncEntryLedgerControl.c @@ -337,8 +337,10 @@ static gboolean gnc_entry_ledger_traverse (VirtualLocation *p_new_virt_loc, 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);