mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:41:35 +02:00
IDE: Prevent "Close all" button in Search in Files window hanging the IDE. Issue #38229, patch from BrunoK.
git-svn-id: trunk@64230 -
This commit is contained in:
parent
537bc0346a
commit
97892a0c42
@ -38,7 +38,7 @@ unit ComponentPalette;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, fgl, Laz_AVL_Tree,
|
Classes, SysUtils, Laz_AVL_Tree,
|
||||||
// LCL
|
// LCL
|
||||||
LCLProc, Controls, Forms, Graphics, ComCtrls, Buttons, Menus, ExtCtrls,
|
LCLProc, Controls, Forms, Graphics, ComCtrls, Buttons, Menus, ExtCtrls,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
|
@ -553,10 +553,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TSearchResultsView.tbbCloseAllClick(Sender: TObject);
|
procedure TSearchResultsView.tbbCloseAllClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
lPageIx : integer;
|
||||||
begin
|
begin
|
||||||
with ResultsNoteBook do
|
with ResultsNoteBook do begin
|
||||||
while PageCount>0 do
|
lPageIx := PageCount;
|
||||||
ClosePage(PageCount-1);
|
while lPageIx > 0 do begin
|
||||||
|
Dec(lPageIx);
|
||||||
|
if lPageIx < PageCount then
|
||||||
|
ClosePage(lPageIx);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{Keeps track of the Index of the Item the mouse is over, Sets ShowHint to true
|
{Keeps track of the Index of the Item the mouse is over, Sets ShowHint to true
|
||||||
|
Loading…
Reference in New Issue
Block a user