diff --git a/lcl/include/customnotebook.inc b/lcl/include/customnotebook.inc index 59c580f090..e2df41394c 100644 --- a/lcl/include/customnotebook.inc +++ b/lcl/include/customnotebook.inc @@ -423,11 +423,10 @@ begin if fPageIndex = AValue then exit; if not CanChangePageIndex then exit; //debugln('TCustomNotebook.SetPageIndex B ',dbgsName(Self),' AValue=',dbgs(AValue),' fPageIndex=',dbgs(fPageIndex),' PageCount=',dbgs(PageCount),' HandleAllocated=',dbgs(HandleAllocated)); - if Page[AValue].TabVisible or (csDesigning in ComponentState) then begin - fPageIndex := AValue; - UpdateAllDesignerFlags; - DoSendPageIndex; - end; + + fPageIndex := AValue; + UpdateAllDesignerFlags; + DoSendPageIndex; end; {------------------------------------------------------------------------------