mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:00:20 +02:00
SourceEditor, switch tabs correctly on gtk2
git-svn-id: trunk@24233 -
This commit is contained in:
parent
220072f09b
commit
9a7417e467
@ -5267,9 +5267,10 @@ end;
|
||||
|
||||
procedure TSourceNotebook.NoteBookDeletePage(Index: Integer);
|
||||
begin
|
||||
if PageCount > 1 then
|
||||
NotebookPages.Delete(Index)
|
||||
else
|
||||
if PageCount > 1 then begin
|
||||
NotebookPages.Delete(Index);
|
||||
FNoteBook.PageIndex := Min(Index, PageCount);
|
||||
end else
|
||||
FNotebook.Visible := False;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user