mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user