mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-11-29 11:24:19 +01:00
quickfix for ftp function
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40322
This commit is contained in:
parent
77bc4b7509
commit
ead1b254c7
Binary file not shown.
@ -11109,6 +11109,7 @@ object frmMain: TfrmMain
|
||||
OnCollapsing = trvDirectoriesCollapsing
|
||||
OnExpanding = trvDirectoriesExpanding
|
||||
OnExpanded = trvDirectoriesExpanded
|
||||
OnMouseDown = trvDirectoriesMouseDown
|
||||
end
|
||||
end
|
||||
object pnlOS: TPanel
|
||||
|
@ -122,6 +122,8 @@ type
|
||||
procedure trvDirectoriesCollapsing(Sender: TObject; Node: TTreeNode;
|
||||
var AllowCollapse: Boolean);
|
||||
procedure trvModsClick(Sender: TObject);
|
||||
procedure trvDirectoriesMouseDown(Sender: TObject;
|
||||
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
private
|
||||
OldProgress: Integer;
|
||||
CurrProgress: Integer;
|
||||
@ -684,4 +686,15 @@ begin
|
||||
cmdNext.Enabled := False;
|
||||
end;
|
||||
|
||||
procedure TfrmMain.trvDirectoriesMouseDown(Sender: TObject;
|
||||
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
var Node: TTreeNode;
|
||||
begin
|
||||
Node := trvDirectories.GetNodeAt(X, Y);
|
||||
if (Assigned(Node)) then begin
|
||||
if (Node.DisplayRect(True).Right < X) then
|
||||
trvDirectories.Selected := nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user