From 75dbad3f16853a91e2176bc5b5337206b7856d88 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 2 Jun 2012 08:00:48 +0300 Subject: removed unneeded key warning on first run --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 36a037f..9444dd6 100755 --- a/main.cpp +++ b/main.cpp @@ -1823,7 +1823,7 @@ void InitCheck() char *keyid = UniGetContactSettingUtf(NULL, szGPGModuleName, "KeyID", ""); char *key = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", ""); void ShowFirstRunDialog(); - if(!keyid[0] || !key[0]) + if(!DBGetContactSettingByte(NULL, szGPGModuleName, "FirstRun", 1) && (!keyid[0] || !key[0])) { question = Translate("You have not set public key for gpg, it's recommended to do it.\nDo you want to do it now ?"); if(MessageBoxA(0, question.c_str(), Translate("Own public key warning"), MB_YESNO) == IDYES) -- cgit v1.2.3