From 964d0ea512080da5d93c654f2c5527a2f5d20970 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Wed, 28 Aug 2013 14:00:36 +0200 Subject: [PATCH] database is correctly unloaded if saving fails --- src/Kp2aBusinessLogic/database/edit/DeleteEntry.cs | 4 ++-- src/Kp2aBusinessLogic/database/edit/DeleteGroup.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Kp2aBusinessLogic/database/edit/DeleteEntry.cs b/src/Kp2aBusinessLogic/database/edit/DeleteEntry.cs index 7b572d16..4ab36ca7 100644 --- a/src/Kp2aBusinessLogic/database/edit/DeleteEntry.cs +++ b/src/Kp2aBusinessLogic/database/edit/DeleteEntry.cs @@ -79,7 +79,7 @@ namespace keepass2android else { // Let's not bother recovering from a failure to save a deleted entry. It is too much work. - App.LockDatabase(); + App.LockDatabase(false); } }, OnFinishToRun); } @@ -99,7 +99,7 @@ namespace keepass2android Db.Dirty.Add(pgRecycleBin); } else { // Let's not bother recovering from a failure to save a deleted entry. It is too much work. - App.LockDatabase(); + App.LockDatabase(false); } }, OnFinishToRun); diff --git a/src/Kp2aBusinessLogic/database/edit/DeleteGroup.cs b/src/Kp2aBusinessLogic/database/edit/DeleteGroup.cs index 1c481bcd..7b1e01bd 100644 --- a/src/Kp2aBusinessLogic/database/edit/DeleteGroup.cs +++ b/src/Kp2aBusinessLogic/database/edit/DeleteGroup.cs @@ -108,7 +108,7 @@ namespace keepass2android Db.Dirty.Add(pgParent); } else { // Let's not bother recovering from a failure to save a deleted group. It is too much work. - App.LockDatabase(); + App.LockDatabase(false); } }, OnFinishToRun); } @@ -146,7 +146,7 @@ namespace keepass2android } } else { // Let's not bother recovering from a failure to save a deleted group. It is too much work. - _app.LockDatabase(); + _app.LockDatabase(false); } base.Run();