Browse Source

vgui_controls: fix SetParent function

serverbrowser
nillerusr 2 years ago
parent
commit
64f7bf9f96
  1. 2
      serverbrowser/BaseGamesPage.cpp
  2. 2
      vgui2/vgui_controls/Panel.cpp

2
serverbrowser/BaseGamesPage.cpp

@ -2205,7 +2205,7 @@ void CBaseGamesPage::ServerResponded( newgameserver_t &server )
{ {
Msg("Serverbrowser: hostname %s\n", server.GetName()); Msg("Serverbrowser: hostname %s\n", server.GetName());
Assert( server.m_NetAdr.GetIP() != 0 ); Assert( server.m_NetAdr.GetIPHostByteOrder() != 0 );
newgameserver_t *pServerItem = &server; newgameserver_t *pServerItem = &server;

2
vgui2/vgui_controls/Panel.cpp

@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent)
if( ipanel()->IsProportional(GetVParent()) ) if( ipanel()->IsProportional(GetVParent()) )
SetProportional(true); SetProportional(true);
if( IsPopup() ) if( !IsPopup() )
{ {
// most of the time KBInput == parents kbinput // most of the time KBInput == parents kbinput
if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled()) if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())

Loading…
Cancel
Save