Skip to content

Commit

Permalink
Fixed: Filename is converted to lowercase when opened from command li…
Browse files Browse the repository at this point in the history
…ne (or explorer)

If the file was modified and saved, the filename was also changed.

Signed-off-by: Daniel Prado Velasco <dpradov@users.noreply.github.com>
  • Loading branch information
dpradov committed Mar 9, 2017
1 parent 3284e5d commit 8428f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general/kn_ConfigMng.pas
Expand Up @@ -113,8 +113,8 @@ procedure ReadCmdLine;
begin
// not a switch, so it's a filename.
// Let's see what kind of file.
ext := extractfileext( s );
s:= GetAbsolutePath(WideExtractFilePath(Application.ExeName), s);
ext := extractfileext(s);
s:= GetAbsolutePath(WideExtractFilePath(Application.ExeName), ParamStr(i));
if (( ext = ext_KeyNote ) or ( ext = ext_Encrypted ) or ( ext = ext_DART )) then
begin
NoteFileToLoad := s;
Expand Down

0 comments on commit 8428f05

Please sign in to comment.