aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-05 12:43:18 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-05 12:43:18 +0200
commitcddc003e70578bbc5537eb7944d49c8d721f0fb4 (patch)
tree6d4b48016c5618f87b2dea8d8000b886affd1c49
parente29b623db36e9c63b1d0796928129a5fad858f0e (diff)
downloadbitcoin-cddc003e70578bbc5537eb7944d49c8d721f0fb4.tar.xz
Disable map upnp option if built without USE_UPNP
-rw-r--r--gui/src/optionsdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/src/optionsdialog.cpp b/gui/src/optionsdialog.cpp
index 8e7f403a7e..1ec777c453 100644
--- a/gui/src/optionsdialog.cpp
+++ b/gui/src/optionsdialog.cpp
@@ -207,6 +207,10 @@ MainOptionsPage::MainOptionsPage(QWidget *parent):
connect(connect_socks4, SIGNAL(toggled(bool)), proxy_ip, SLOT(setEnabled(bool)));
connect(connect_socks4, SIGNAL(toggled(bool)), proxy_port, SLOT(setEnabled(bool)));
+
+#ifndef USE_UPNP
+ map_port_upnp->setDisabled(true);
+#endif
}
void MainOptionsPage::setMapper(MonitoredDataMapper *mapper)