git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e29b623
)
Disable map upnp option if built without USE_UPNP
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Sun, 5 Jun 2011 10:43:18 +0000 (12:43 +0200)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Sun, 5 Jun 2011 10:43:18 +0000 (12:43 +0200)
gui/src/optionsdialog.cpp
patch
|
blob
|
history
diff --git
a/gui/src/optionsdialog.cpp
b/gui/src/optionsdialog.cpp
index
8e7f403
..
1ec777c
100644
(file)
--- 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)