Merge pull request #5928 from JonnyH/PR/fix-qt-build-USE_UPNP-disabled

Qt frontend build fix for USE_UPNP=OFF
This commit is contained in:
JosJuice 2017-08-14 22:50:01 +02:00 committed by GitHub
commit 8fedd4fa06
1 changed files with 4 additions and 0 deletions

View File

@ -181,7 +181,9 @@ void NetPlaySetupDialog::SaveSettings()
Config::SetBaseOrCurrent(Config::NETPLAY_CONNECT_PORT,
static_cast<u16>(m_connect_port_box->value()));
Config::SetBaseOrCurrent(Config::NETPLAY_HOST_PORT, static_cast<u16>(m_host_port_box->value()));
#ifdef USE_UPNP
Config::SetBaseOrCurrent(Config::NETPLAY_USE_UPNP, m_host_upnp->isChecked());
#endif
if (m_host_force_port_check->isChecked())
Config::SetBaseOrCurrent(Config::NETPLAY_LISTEN_PORT,
@ -195,7 +197,9 @@ void NetPlaySetupDialog::OnConnectionTypeChanged(int index)
m_host_port_label->setHidden(index != 0);
m_host_port_box->setHidden(index != 0);
#ifdef USE_UPNP
m_host_upnp->setHidden(index != 0);
#endif
m_host_force_port_check->setHidden(index == 0);
m_host_force_port_box->setHidden(index == 0);