database is correctly unloaded if saving fails

This commit is contained in:
Philipp Crocoll 2013-08-28 14:00:36 +02:00
parent 55e81ab25b
commit 964d0ea512
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ namespace keepass2android
else else
{ {
// Let's not bother recovering from a failure to save a deleted entry. It is too much work. // Let's not bother recovering from a failure to save a deleted entry. It is too much work.
App.LockDatabase(); App.LockDatabase(false);
} }
}, OnFinishToRun); }, OnFinishToRun);
} }
@ -99,7 +99,7 @@ namespace keepass2android
Db.Dirty.Add(pgRecycleBin); Db.Dirty.Add(pgRecycleBin);
} else { } else {
// Let's not bother recovering from a failure to save a deleted entry. It is too much work. // Let's not bother recovering from a failure to save a deleted entry. It is too much work.
App.LockDatabase(); App.LockDatabase(false);
} }
}, OnFinishToRun); }, OnFinishToRun);

View File

@ -108,7 +108,7 @@ namespace keepass2android
Db.Dirty.Add(pgParent); Db.Dirty.Add(pgParent);
} else { } else {
// Let's not bother recovering from a failure to save a deleted group. It is too much work. // Let's not bother recovering from a failure to save a deleted group. It is too much work.
App.LockDatabase(); App.LockDatabase(false);
} }
}, OnFinishToRun); }, OnFinishToRun);
} }
@ -146,7 +146,7 @@ namespace keepass2android
} }
} else { } else {
// Let's not bother recovering from a failure to save a deleted group. It is too much work. // 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(); base.Run();