Skip to content

Commit

Permalink
Fix for opening certain filenames in the EDI file export.
Browse files Browse the repository at this point in the history
The feature for checking your EDI file when it has been created
will not open all filenames / paths.
The failing files / paths are those with one or more spaces in them.
The remedy is to quote the string. The same error exists in
the Cabrillo export as well.  (ok2cqr#517)
  • Loading branch information
Thomas Nilsson authored and Thomas Nilsson committed Jun 14, 2022
1 parent f4d5d1e commit 86f06fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fCabrilloExport.pas
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ procedure TfrmCabrilloExport.ViewFile(f:string);
try
prg := cqrini.ReadString('ExtView', 'txt', '');
if prg<>'' then
dmUtils.RunOnBackground(prg + ' ' + f)
dmUtils.RunOnBackground(prg + ' ' + '"' + f + '"')
else ShowMessage('No external text viewer defined!'+#10+'See: prefrences/External viewers');
finally
//done
Expand Down
2 changes: 1 addition & 1 deletion src/fEDIExport.pas
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ procedure TfrmEDIExport.btnResultFileClick(Sender: TObject);
try
prg := cqrini.ReadString('ExtView', 'txt', '');
if prg<>'' then
dmUtils.RunOnBackground(prg + ' ' + edtFileName.Text)
dmUtils.RunOnBackground(prg + ' ' + '"' + edtFileName.Text + '"')
else ShowMessage('No external text viewer defined!'+#10+'See: prefrences/External viewers');
finally
//done
Expand Down

0 comments on commit 86f06fe

Please sign in to comment.