lcl: fix TCustomForm.SetPopupMode: remove PopupParent for both pmAuto and pmNone

git-svn-id: trunk@51049 -
This commit is contained in:
ondrej 2015-12-27 11:02:11 +00:00
parent 6f4f90622a
commit 574bda0e99

View File

@ -360,7 +360,7 @@ begin
if FPopupMode <> AValue then
begin
FPopupMode := AValue;
if (FPopupMode = pmAuto) and (PopupParent <> nil) then
if (FPopupMode in [pmAuto, pmNone]) and (PopupParent <> nil) then
PopupParent := nil
else
if not (csDesigning in ComponentState) and HandleAllocated then