diff options
Diffstat (limited to 'plugins/New_GPG/src/main.cpp')
-rwxr-xr-x | plugins/New_GPG/src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp index cf37f2482c..8c653b32f8 100755 --- a/plugins/New_GPG/src/main.cpp +++ b/plugins/New_GPG/src/main.cpp @@ -2013,7 +2013,11 @@ void FirstRun() void InitCheck() { {//parse gpg output + TCHAR *current_home = UniGetContactSettingUtf(NULL, szGPGModuleName, "szHomePath", _T("")); + db_set_ts(NULL, szGPGModuleName, "szHomePath", _T("")); //we do not need home for gpg binary validation gpg_valid = isGPGValid(); + db_set_ts(NULL, szGPGModuleName, "szHomePath", current_home); //return current home dir back + mir_free(current_home); bool home_dir_access = false, temp_access = false; TCHAR *home_dir = UniGetContactSettingUtf(NULL, szGPGModuleName, "szHomePath", _T("")); std::wstring test_path = home_dir; |