Parcourir la source

FIX: Copy/Cut to clipboard from search results

Alexander Koblov il y a 11 ans
Parent
commit
ec8ec7dfce
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/umaincommands.pas

+ 2 - 2
src/umaincommands.pas

@@ -2784,14 +2784,14 @@ begin
   Result := False;
 
   with frmMain.ActiveFrame do
-  if FileSource.IsClass(TFileSystemFileSource) then
+  if (fspDirectAccess in FileSource.Properties) then
   begin
     sl := TStringList.Create;
     try
       theSelectedFiles := CloneSelectedOrActiveFiles;
 
       for i := 0 to theSelectedFiles.Count - 1 do
-        sl.Add(CurrentPath + theSelectedFiles[i].Name);
+        sl.Add(theSelectedFiles[i].FullPath);
 
       case ClipboardMode of
         uClipboard.ClipboardCut: