mirror of https://gitlab.com/basile.b/dexed.git
fix, possible pagecontrol error when all page closed
This commit is contained in:
parent
01724a5a9e
commit
f0fd280c6d
|
@ -234,6 +234,7 @@ begin
|
|||
fContent.OnDragOver:=value;
|
||||
fTabs.OnDragOver:=value;
|
||||
end;
|
||||
|
||||
procedure TCEPageControl.setOnDragDrop(value: TDragDropEvent);
|
||||
begin
|
||||
if fOnDragDrop = value then
|
||||
|
@ -365,10 +366,10 @@ begin
|
|||
fPages.Delete(index);
|
||||
fTabs.Tabs.Delete(index);
|
||||
|
||||
updateButtonsState;
|
||||
if fPages.Count = 0 then
|
||||
exit;
|
||||
fPageIndex:=-1;
|
||||
|
||||
updateButtonsState;
|
||||
setPageIndex(fPageIndex);
|
||||
end;
|
||||
|
||||
|
|
Loading…
Reference in New Issue