mirror of https://gitlab.com/basile.b/dexed.git
fix #474 - SymString of tools parameters not expanded when queryParameters is activated and an empty string is passed
This commit is contained in:
parent
13cfe8cc7d
commit
78d8148730
|
@ -240,11 +240,11 @@ begin
|
||||||
if fQueryParams then
|
if fQueryParams then
|
||||||
begin
|
begin
|
||||||
prm := '';
|
prm := '';
|
||||||
if InputQuery('Parameters', '', prm) then
|
if InputQuery('Parameters', '', prm) and not prm.isBlank then
|
||||||
begin
|
begin
|
||||||
prm := fSymStringExpander.expand(prm);
|
prm := fSymStringExpander.expand(prm);
|
||||||
arg := StringReplace(fParameters.Text, '<$1>', prm, [rfReplaceAll]);
|
arg := StringReplace(fProcess.Parameters.Text, '<$1>', prm, [rfReplaceAll]);
|
||||||
if prm.isNotEmpty and (arg = fParameters.Text) then
|
if prm.isNotEmpty and (arg = fProcess.Parameters.Text) then
|
||||||
fProcess.Parameters.AddText(prm)
|
fProcess.Parameters.AddText(prm)
|
||||||
else
|
else
|
||||||
fProcess.Parameters.Text := arg;
|
fProcess.Parameters.Text := arg;
|
||||||
|
|
Loading…
Reference in New Issue