Fix build without UPnP

There is no checkbox.
This commit is contained in:
Gabriel Corona 2015-05-06 20:58:06 +02:00
parent 80fe5e0a55
commit 469ea24717
1 changed files with 4 additions and 0 deletions

View File

@ -354,7 +354,9 @@ void NetPlaySetupFrame::OnChoice(wxCommandEvent& event)
{
m_host_port_lbl->Hide();
m_host_port_text->Hide();
#ifdef USE_UPNP
m_upnp_chk->Hide();
#endif
}
}
else
@ -380,7 +382,9 @@ void NetPlaySetupFrame::OnChoice(wxCommandEvent& event)
// Server tab
m_host_port_lbl->Show();
m_host_port_text->Show();
#ifdef USE_UPNP
m_upnp_chk->Show();
#endif
}
}