diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 15:20:53 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 15:20:53 +0000 |
commit | cf751286442fa9b4b4843ae1091625e6a6c7ba2d (patch) | |
tree | c5c76f649b8065018d4d1189c84a70b7ef090bc3 /plugins/Dbx_mdb/src/dbcrypt.cpp | |
parent | a98fbb55e2701f6ba4348e90bdb110df667bc4a5 (diff) |
dbx_lmdb: fixed writing settings; CryptoProvider selector; correct transactions revert
git-svn-id: http://svn.miranda-ng.org/main/trunk@16310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcrypt.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbcrypt.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/Dbx_mdb/src/dbcrypt.cpp b/plugins/Dbx_mdb/src/dbcrypt.cpp index 2cf2613c45..f13e74aa81 100644 --- a/plugins/Dbx_mdb/src/dbcrypt.cpp +++ b/plugins/Dbx_mdb/src/dbcrypt.cpp @@ -141,7 +141,13 @@ int CDbxMdb::InitCrypt() if (iNumProvs == 0)
return 1;
- pProvider = ppProvs[0]; //!!!!!!!!!!!!!!!!!!
+ if (iNumProvs > 1)
+ {
+ CSelectCryptoDialog dlg(ppProvs, iNumProvs);
+ dlg.DoModal();
+ pProvider = dlg.GetSelected();
+ }
+ else pProvider = ppProvs[0];
DBCONTACTWRITESETTING dbcws = { "CryptoEngine", "Provider" };
dbcws.value.type = DBVT_BLOB;
@@ -149,7 +155,8 @@ int CDbxMdb::InitCrypt() dbcws.value.cpbVal = (int)strlen(pProvider->pszName) + 1;
WriteContactSetting(NULL, &dbcws);
}
- else {
+ else
+ {
if (dbv.type != DBVT_BLOB) { // old version, clean it up
bMissingKey = true;
goto LBL_CreateProvider;
|