summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-08-14 22:50:01 +0200
committerGitHub <noreply@github.com>2017-08-14 22:50:01 +0200
commit8fedd4fa0662daebcff91b82203773000d0b0ae7 (patch)
tree825d44142836b13a79e661c2be30165f1293454a /Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp
parent6a272f22de4fc17d221632883b5f22fd718c4880 (diff)
parent5c213a5ad5e20ac942c83eaab5d2e85faca724e6 (diff)
Merge pull request #5928 from JonnyH/PR/fix-qt-build-USE_UPNP-disabled
Qt frontend build fix for USE_UPNP=OFF
Diffstat (limited to 'Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp')
-rw-r--r--Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp
index 1179d2c06f..922186d9ca 100644
--- a/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp
+++ b/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp
@@ -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);