diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-04 11:29:33 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-05 01:44:04 +0200 |
commit | 3e678f68686255295d569d12818c927b25851693 (patch) | |
tree | 138f6fac4d4d1f427dade4e6983a214ab74c0e48 /src | |
parent | d5b0e0db3f7a7045cb8e6906b5a9bca22962415c (diff) | |
download | VeraCrypt-3e678f68686255295d569d12818c927b25851693.tar.gz VeraCrypt-3e678f68686255295d569d12818c927b25851693.zip |
Linux/MacOSX: cleaner code for handling of missing local HTML documentation.
Diffstat (limited to 'src')
-rwxr-xr-x | src/Main/GraphicUserInterface.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp index 83e1ce91..3031a66c 100755 --- a/src/Main/GraphicUserInterface.cpp +++ b/src/Main/GraphicUserInterface.cpp @@ -1234,7 +1234,6 @@ namespace VeraCrypt #elif defined (TC_UNIX) htmlPath = L"/usr/share/veracrypt/doc/HTML/"; #else - htmlPath = L"https://www.veracrypt.fr/en/"; localFile = false; #endif if (localFile) @@ -1242,12 +1241,14 @@ namespace VeraCrypt /* check if local file exists */ wxFileName htmlFile = htmlPath + url; htmlFile.Normalize(); - if (!htmlFile.FileExists()) - { - htmlPath = L"https://www.veracrypt.fr/en/"; - url.Replace (L" ", L"%20"); - url.Replace (L"'", L"%27"); - } + localFile = htmlFile.FileExists(); + } + + if (!localFile) + { + htmlPath = L"https://www.veracrypt.fr/en/"; + url.Replace (L" ", L"%20"); + url.Replace (L"'", L"%27"); } url = htmlPath + url; |