mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +02:00
IDE: source editor SetPageIndex: check if PageIndex=AValue
git-svn-id: trunk@42483 -
This commit is contained in:
parent
d01d5e1399
commit
4a79a421e4
@ -5647,6 +5647,7 @@ var
|
||||
i: Integer;
|
||||
n: TComponent;
|
||||
begin
|
||||
FPageIndex:=-1;
|
||||
i := 1;
|
||||
n := AOwner.FindComponent(NonModalIDEWindowNames[nmiwSourceNoteBookName]);
|
||||
while (n <> nil) do begin
|
||||
@ -6396,6 +6397,10 @@ end;
|
||||
procedure TSourceNotebook.SetPageIndex(const AValue: Integer);
|
||||
begin
|
||||
DebugLnEnter(SRCED_PAGES, ['>> TSourceNotebook.SetPageIndex Cur-PgIdx=', PageIndex, ' FPageIndex=', FPageIndex, ' Value=', AValue, ' FUpdateLock=', FUpdateLock]);
|
||||
if PageIndex = AValue then begin
|
||||
//debugln(['>> TSourceNotebook.SetPageIndex PageIndex=', PageIndex, ' FPageIndex=', FPageIndex, ' Value=', AValue, ' FUpdateLock=', FUpdateLock]);
|
||||
exit;
|
||||
end;
|
||||
FPageIndex := AValue;
|
||||
if FUpdateLock = 0 then begin
|
||||
DebugBoss.LockCommandProcessing;
|
||||
|
Loading…
Reference in New Issue
Block a user