瀏覽代碼

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

https://winscp.net/tracker/1559

Source commit: 9b220dcd1f902faa43d886efabc62c11bc55219f
Martin Prikryl 8 年之前
父節點
當前提交
044be4ea2f
共有 1 個文件被更改,包括 5 次插入0 次删除
  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