fix, open folder broken on win

This commit is contained in:
Basile Burg 2016-02-12 14:31:03 +01:00
parent c0738636e0
commit cac8b85e98
1 changed files with 1 additions and 1 deletions

View File

@ -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;