PwDatabase: Save method now preserves the file format (kdbp vs. kdbx)

SaveDb: fixed bug with catching exceptions
Added kdbp Tests
Changed versionCode for new preview release
This commit is contained in:
Philipp Crocoll
2013-07-13 07:57:34 +02:00
parent f06ce9c58b
commit e887ce1db2
5 changed files with 65 additions and 5 deletions

View File

@@ -136,12 +136,24 @@ namespace keepass2android
{
try
{
_workerThread = new Thread(runHandler);
_workerThread = new Thread(() =>
{
try
{
runHandler();
}
catch (Exception e)
{
Kp2aLog.Log("Error in worker thread of SaveDb: " + e);
Finish(false, e.Message);
}
});
_workerThread.Start();
}
catch (Exception e)
{
Kp2aLog.Log("Error in worker thread of SaveDb: "+e);
Kp2aLog.Log("Error starting worker thread of SaveDb: "+e);
Finish(false, e.Message);
}