Skip to content
Permalink
Browse files
Merge pull request #5928 from JonnyH/PR/fix-qt-build-USE_UPNP-disabled
Qt frontend build fix for USE_UPNP=OFF
  • Loading branch information
JosJuice committed Aug 14, 2017
2 parents 6a272f2 + 5c213a5 commit 8fedd4f
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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);

0 comments on commit 8fedd4f

Please sign in to comment.