From e90f4b37056b5e9299913a7ae164d906ec451608 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 4 May 2006 00:38:25 +0000 Subject: [PATCH] svn: r6538 --- src/GrampsDb/_GrampsBSDDB.py | 2 ++ src/GrampsDb/_GrampsDbBase.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index bde5ac084..3a0ac4f5d 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -1066,6 +1066,8 @@ class GrampsBSDDB(GrampsDbBase): # A batch transaction does not store the commits # Aborting the session completely will become impossible. self.abort_possible = False + # Undo is also impossible after batch transaction + self.undoindex = -1 transaction = BdbTransaction(msg,self.undodb,batch,no_magic) if transaction.batch: if self.UseTXN: diff --git a/src/GrampsDb/_GrampsDbBase.py b/src/GrampsDb/_GrampsDbBase.py index eea50fe46..5c9af1964 100644 --- a/src/GrampsDb/_GrampsDbBase.py +++ b/src/GrampsDb/_GrampsDbBase.py @@ -1208,6 +1208,8 @@ class GrampsDbBase(GrampsDBCallback): # A batch transaction does not store the commits # Aborting the session completely will become impossible. self.abort_possible = False + # Undo is also impossible after batch transaction + self.undoindex = -1 return Transaction(msg, self.undodb, batch) def transaction_commit(self, transaction, msg):