summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-06 02:22:01 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-06 02:22:01 +0300
commit5e78e462baec888a1eecd0f74dd3adb62e6a6843 (patch)
treed474c43f955f7c43c74a7abfbf4950fdd03db445
parentd5b250e01c03663f0973deaec76817426a50e60b (diff)
backported fix from miranda ng
-rwxr-xr-xmain.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/main.cpp b/main.cpp
index db7a6d7..4c7d980 100755
--- a/main.cpp
+++ b/main.cpp
@@ -249,6 +249,14 @@ static INT_PTR CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR
acc_str += "_KeyID";
DBWriteContactSettingTString(NULL, szGPGModuleName, acc_str.c_str(), fp);
}
+ if(!strcmp(buf, Translate("Default")))
+ {
+ wstring keyinfo = TranslateT("Default private key id");
+ keyinfo += _T(": ");
+ keyinfo += (fp[0])?fp:_T("not set");
+ extern HWND hwndCurKey_p;
+ SetWindowText(hwndCurKey_p, keyinfo.c_str());
+ }
}
TCHAR passwd[64];
GetDlgItemText(hwndDlg, IDC_KEY_PASSWORD, passwd, 64);
@@ -261,13 +269,6 @@ static INT_PTR CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR
dbsetting += "_Password";
DBWriteContactSettingTString(NULL, szGPGModuleName, dbsetting.c_str(), passwd);
}
- {
- wstring keyinfo = TranslateT("Default private key id");
- keyinfo += _T(": ");
- keyinfo += (fp[0])?fp:_T("not set");
- extern HWND hwndCurKey_p;
- SetWindowText(hwndCurKey_p, keyinfo.c_str());
- }
delete [] name;
}
bAutoExchange = CheckStateStoreDB(hwndDlg, IDC_AUTO_EXCHANGE, "bAutoExchange");