vgui_controls: fix SetParent function

This commit is contained in:
nillerusr
2023-01-29 21:48:36 +03:00
parent c4b93b30d7
commit 64f7bf9f96
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent)
if( ipanel()->IsProportional(GetVParent()) )
SetProportional(true);
if( IsPopup() )
if( !IsPopup() )
{
// most of the time KBInput == parents kbinput
if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())