mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 10:39: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);
|
procedure TSourceNotebook.NoteBookDeletePage(Index: Integer);
|
||||||
begin
|
begin
|
||||||
if PageCount > 1 then
|
if PageCount > 1 then begin
|
||||||
NotebookPages.Delete(Index)
|
NotebookPages.Delete(Index);
|
||||||
else
|
FNoteBook.PageIndex := Min(Index, PageCount);
|
||||||
|
end else
|
||||||
FNotebook.Visible := False;
|
FNotebook.Visible := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user