diff --git a/src/preferences/options.ui b/src/preferences/options.ui index b62393b95..2687c4498 100644 --- a/src/preferences/options.ui +++ b/src/preferences/options.ui @@ -1799,7 +1799,7 @@ QGroupBox { 0 - -25 + 0 570 422 diff --git a/src/webui/eventmanager.cpp b/src/webui/eventmanager.cpp index 68a202229..ea4703467 100644 --- a/src/webui/eventmanager.cpp +++ b/src/webui/eventmanager.cpp @@ -208,8 +208,6 @@ void EventManager::setGlobalPreferences(QVariantMap m) const { pref.setSessionPort(m["listen_port"].toInt()); if(m.contains("upnp")) pref.setUPnPEnabled(m["upnp"].toBool()); - if(m.contains("natpmp")) - pref.setNATPMPEnabled(m["natpmp"].toBool()); if(m.contains("dl_limit")) pref.setGlobalDownloadLimit(m["dl_limit"].toInt()); if(m.contains("up_limit")) @@ -296,7 +294,6 @@ QVariantMap EventManager::getGlobalPreferences() const { // Connection data["listen_port"] = pref.getSessionPort(); data["upnp"] = pref.isUPnPEnabled(); - data["natpmp"] = pref.isNATPMPEnabled(); data["dl_limit"] = pref.getGlobalDownloadLimit(); data["up_limit"] = pref.getGlobalUploadLimit(); data["max_connec"] = pref.getMaxConnecs(); diff --git a/src/webui/html/preferences_content.html b/src/webui/html/preferences_content.html index 011bd8858..320cac3c2 100644 --- a/src/webui/html/preferences_content.html +++ b/src/webui/html/preferences_content.html @@ -7,10 +7,7 @@
- - - - +
_(Enable UPnP port mapping)
_(Enable NAT-PMP port mapping)_(Use UPnP / NAT-PMP port forwarding from my router)
@@ -52,7 +49,7 @@
- + @@ -61,17 +58,17 @@ - + - +
_(Enable DHT network (decentralized))_(Enable DHT (decentralized network) to find more peers)
_(Use a different port for DHT and Bittorrent)_(DHT port:)
_(Enable Peer Exchange / PeX (requires restart))_(Enable Peer Exchange (PeX) to find more peers)
_(Enable Local Peer Discovery)_(Enable Local Peer Discovery to find more peers)
- _(Encryption:) + _(Encryption mode:)
@@ -277,9 +274,6 @@ var upnp = 0; if($defined($('upnp_checkbox').get('checked')) && $('upnp_checkbox').get('checked')) upnp = 1; - var natpmp = 0; - if($defined($('natpmp_checkbox').get('checked')) && $('natpmp_checkbox').get('checked')) - natpmp = 1; var dl_limit = -1; if($defined($('dl_limit_checkbox').get('checked')) && $('dl_limit_checkbox').get('checked')) { @@ -429,7 +423,6 @@ // Connection dict.set('listen_port', listen_port); dict.set('upnp', upnp); - dict.set('natpmp', natpmp); dict.set('up_limit', up_limit); dict.set('dl_limit', dl_limit); dict.set('max_connec', max_connec); @@ -698,12 +691,6 @@ loadPreferences = function() { $('upnp_checkbox').removeProperty('checked'); } - if(pref.natpmp) { - $('natpmp_checkbox').set('checked', 'checked'); - } else { - $('natpmp_checkbox').removeProperty('checked'); - } - var dl_limit = pref.dl_limit.toInt(); if(dl_limit <= 0) { $('dl_limit_checkbox').removeProperty('checked');