Skip to content

Commit

Permalink
Bug 796248 - Editing Scheduled Transaction
Browse files Browse the repository at this point in the history
An extra XaccTransBeginEdit, never committed, for transactions that
the backend tried to load when they were already there. That made
the register think that something else had it open.
  • Loading branch information
jralls committed Jun 12, 2018
1 parent c8861d4 commit ffe6044
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libgnucash/backend/sql/gnc-transaction-sql.cpp
Expand Up @@ -292,12 +292,12 @@ load_single_tx (GncSqlBackend* sql_be, GncSqlRow& row)
if (guid == NULL) return NULL;
tx_guid = *guid;

// Don't overwrite the transaction if it's already been loaded (and possibly modified).
// However increase the edit level, it may be modified while loading its splits
/* Don't overwrite the transaction if it's already been loaded (and possibly
* modified).
*/
pTx = xaccTransLookup (&tx_guid, sql_be->book());
if (pTx != NULL)
{
xaccTransBeginEdit (pTx);
return NULL;
}

Expand Down

0 comments on commit ffe6044

Please sign in to comment.