2
0
Эх сурвалжийг харах

FIX: Shell execute for parent directory (fixes #1354) (#1364)

Demetrius flavious 1 жил өмнө
parent
commit
4d8b7b8b16

+ 3 - 3
src/umaincommands.pas

@@ -1414,9 +1414,9 @@ begin
       if Assigned(aFile) then
       if Assigned(aFile) then
       try
       try
         if aFile.IsNameValid then
         if aFile.IsNameValid then
-        begin
-          ShellExecute(aFile.FullPath);
-        end;
+          ShellExecute(aFile.FullPath)
+        else if aFile.Name = '..' then
+          ShellExecute(aFile.Path);
       finally
       finally
         FreeAndNil(aFile);
         FreeAndNil(aFile);
       end;
       end;