Merge pull request #2374 from randomstuff/fix-unpn

Fix build without UPnP
This commit is contained in:
shuffle2 2015-05-07 18:36:02 -07:00
commit 94995503aa
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_lbl->Hide();
m_host_port_text->Hide(); m_host_port_text->Hide();
#ifdef USE_UPNP
m_upnp_chk->Hide(); m_upnp_chk->Hide();
#endif
} }
} }
else else
@ -380,7 +382,9 @@ void NetPlaySetupFrame::OnChoice(wxCommandEvent& event)
// Server tab // Server tab
m_host_port_lbl->Show(); m_host_port_lbl->Show();
m_host_port_text->Show(); m_host_port_text->Show();
#ifdef USE_UPNP
m_upnp_chk->Show(); m_upnp_chk->Show();
#endif
} }
} }