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;
|
fContent.OnDragOver:=value;
|
||||||
fTabs.OnDragOver:=value;
|
fTabs.OnDragOver:=value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEPageControl.setOnDragDrop(value: TDragDropEvent);
|
procedure TCEPageControl.setOnDragDrop(value: TDragDropEvent);
|
||||||
begin
|
begin
|
||||||
if fOnDragDrop = value then
|
if fOnDragDrop = value then
|
||||||
|
@ -365,10 +366,10 @@ begin
|
||||||
fPages.Delete(index);
|
fPages.Delete(index);
|
||||||
fTabs.Tabs.Delete(index);
|
fTabs.Tabs.Delete(index);
|
||||||
|
|
||||||
updateButtonsState;
|
|
||||||
if fPages.Count = 0 then
|
if fPages.Count = 0 then
|
||||||
exit;
|
fPageIndex:=-1;
|
||||||
|
|
||||||
|
updateButtonsState;
|
||||||
setPageIndex(fPageIndex);
|
setPageIndex(fPageIndex);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue