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
2.4
Phil Longstaff 18 years ago
parent 8c648d911b
commit 3614a48858

@ -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 ) {

@ -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 );

Loading…
Cancel
Save