vgui_controls: fix SetParent function
This commit is contained in:
parent
ad63a53fd3
commit
602e85c329
2 changed files with 2 additions and 2 deletions
|
@ -2205,7 +2205,7 @@ void CBaseGamesPage::ServerResponded( newgameserver_t &server )
|
|||
{
|
||||
Msg("Serverbrowser: hostname %s\n", server.GetName());
|
||||
|
||||
Assert( server.m_NetAdr.GetIP() != 0 );
|
||||
Assert( server.m_NetAdr.GetIPHostByteOrder() != 0 );
|
||||
|
||||
newgameserver_t *pServerItem = &server;
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue