mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 14:18:17 +02:00
Disabled populating TShellTreeView and TShellListView in the IDE because they were causing freezes in the Carbon IDE
git-svn-id: trunk@20209 -
This commit is contained in:
parent
57a49573b6
commit
e289f31627
@ -442,6 +442,9 @@ var
|
||||
pDrive: PChar;
|
||||
NewNode: TTreeNode;
|
||||
begin
|
||||
// avoids crashes in the IDE by not populating during design
|
||||
if (csDesigning in ComponentState) then Exit;
|
||||
|
||||
r := GetLogicalDriveStrings(SizeOf(Drives), Drives);
|
||||
if r = 0 then Exit;
|
||||
if r > SizeOf(Drives) then Exit;
|
||||
@ -460,6 +463,9 @@ begin
|
||||
end;
|
||||
{$else}
|
||||
begin
|
||||
// avoids crashes in the IDE by not populating during design
|
||||
if (csDesigning in ComponentState) then Exit;
|
||||
|
||||
PopulateTreeNodeWithFiles(nil, GetBasePath());
|
||||
end;
|
||||
{$endif}
|
||||
@ -560,6 +566,9 @@ var
|
||||
CurFileName, CurFilePath: string;
|
||||
CurFileSize: Int64;
|
||||
begin
|
||||
// avoids crashes in the IDE by not populating during design
|
||||
if (csDesigning in ComponentState) then Exit;
|
||||
|
||||
// Check inputs
|
||||
if FRoot = '' then Exit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user