mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-29 04:22:22 -05:00
database is correctly unloaded if saving fails
This commit is contained in:
parent
55e81ab25b
commit
964d0ea512
@ -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);
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user