Fix for opening certain filenames in the EDI file export.

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.  (#517)
This commit is contained in:
Thomas Nilsson 2022-06-14 16:34:31 +02:00
parent f4d5d1e48d
commit 86f06fee85
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ begin
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

View File

@ -159,7 +159,7 @@ begin
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