mirror of https://gitlab.com/basile.b/dexed.git
fix, open folder broken on win
This commit is contained in:
parent
c0738636e0
commit
cac8b85e98
|
@ -536,7 +536,7 @@ begin
|
||||||
if lstFav.Selected.Data.isNil then exit;
|
if lstFav.Selected.Data.isNil then exit;
|
||||||
fname := PString(lstFav.Selected.Data)^;
|
fname := PString(lstFav.Selected.Data)^;
|
||||||
end;
|
end;
|
||||||
if fname.fileExists then if not shellOpen(fname) then
|
if fname.fileExists or fname.dirExists then if not shellOpen(fname) then
|
||||||
getMessageDisplay.message((format('the shell failed to open "%s"',
|
getMessageDisplay.message((format('the shell failed to open "%s"',
|
||||||
[shortenPath(fname, 25)])), nil, amcMisc, amkErr);
|
[shortenPath(fname, 25)])), nil, amcMisc, amkErr);
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue