1) Fix bug where deleting an account wouldn't delete the account in the db

2) Remove unused local variable


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17802 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2009-01-05 15:36:31 +00:00
parent 8c648d911b
commit 3614a48858
2 changed files with 1 additions and 1 deletions

View File

@@ -300,6 +300,7 @@ gnc_sql_save_account( GncSqlBackend* be, QofInstance* inst )
if( xaccAccountGetCommodity( pAcc ) != NULL ) {
gint op;
is_ok = TRUE;
if( qof_instance_get_destroying( inst ) ) {
op = OP_DB_DELETE;
} else if( be->is_pristine_db || is_infant ) {

View File

@@ -325,7 +325,6 @@ save_slot( const gchar* key, KvpValue* value, gpointer data )
{
slot_info_t* pSlot_info = (slot_info_t*)data;
gint curlen;
gboolean is_ok = FALSE;
g_return_if_fail( key != NULL );
g_return_if_fail( value != NULL );