Sfoglia il codice sorgente

Bug 1559: Mouse selection is sometimes incorrectly initiated after inline remote file renaming

https://winscp.net/tracker/1559

Source commit: 9b220dcd1f902faa43d886efabc62c11bc55219f
Martin Prikryl 8 anni fa
parent
commit
044be4ea2f
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      source/packages/filemng/CustomDirView.pas

+ 5 - 0
source/packages/filemng/CustomDirView.pas

@@ -2425,6 +2425,11 @@ var
   Info: string;
   Index: Integer;
 begin
+  // When rename is confirmed by clicking outside of the edit box, and the actual rename operation
+  // displays error message or simply pumps a message queue (like during lenghty remote directory reload),
+  // drag mouse selection start. It posssibly happens only on the remote panel due to it being completelly reloaded.
+  ReleaseCapture;
+
   if Length(HItem.pszText) = 0 then LoadEnabled := True
     else
   begin