Browse Source

Simplify program preferences

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
ec37673a21
  1. 16
      src/preferences/options.ui
  2. 6
      src/qtlibtorrent/qbtsession.cpp

16
src/preferences/options.ui

@ -142,7 +142,7 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Bittorrent</string> <string>BitTorrent</string>
</property> </property>
<property name="textAlignment"> <property name="textAlignment">
<set>AlignHCenter|AlignVCenter|AlignCenter</set> <set>AlignHCenter|AlignVCenter|AlignCenter</set>
@ -1399,8 +1399,8 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>423</width> <width>524</width>
<height>334</height> <height>414</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_33"> <layout class="QVBoxLayout" name="verticalLayout_33">
@ -1796,7 +1796,7 @@ QGroupBox {
<item> <item>
<widget class="QGroupBox" name="AddBTFeaturesBox"> <widget class="QGroupBox" name="AddBTFeaturesBox">
<property name="title"> <property name="title">
<string>Bittorrent features</string> <string>BitTorrent features</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_14"> <layout class="QVBoxLayout" name="verticalLayout_14">
<item> <item>
@ -1812,7 +1812,7 @@ QGroupBox {
}</string> }</string>
</property> </property>
<property name="title"> <property name="title">
<string>Enable DHT network (decentralized)</string> <string>Enable DHT (decentralized network) to find more peers</string>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -1834,7 +1834,7 @@ QGroupBox {
}</string> }</string>
</property> </property>
<property name="title"> <property name="title">
<string>Use a different port for DHT and Bittorrent</string> <string>Use a different port for DHT and BitTorrent</string>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -1898,7 +1898,7 @@ QGroupBox {
<string>Exchange peers with compatible Bittorrent clients (µTorrent, Vuze, ...)</string> <string>Exchange peers with compatible Bittorrent clients (µTorrent, Vuze, ...)</string>
</property> </property>
<property name="text"> <property name="text">
<string>Enable Peer Exchange / PeX (requires restart)</string> <string>Enable Peer Exchange (PeX) to find more peers</string>
</property> </property>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>
@ -1911,7 +1911,7 @@ QGroupBox {
<string>Look for peers on your local network</string> <string>Look for peers on your local network</string>
</property> </property>
<property name="text"> <property name="text">
<string>Enable Local Peer Discovery</string> <string>Enable Local Peer Discovery to find more peers</string>
</property> </property>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>

6
src/qtlibtorrent/qbtsession.cpp

@ -449,7 +449,7 @@ void QBtSession::configureSession() {
// * LSD // * LSD
if(pref.isLSDEnabled()) { if(pref.isLSDEnabled()) {
enableLSD(true); enableLSD(true);
addConsoleMessage(tr("Local Peer Discovery [ON]"), QString::fromUtf8("blue")); addConsoleMessage(tr("Local Peer Discovery support [ON]"), QString::fromUtf8("blue"));
} else { } else {
enableLSD(false); enableLSD(false);
addConsoleMessage(tr("Local Peer Discovery support [OFF]"), QString::fromUtf8("blue")); addConsoleMessage(tr("Local Peer Discovery support [OFF]"), QString::fromUtf8("blue"));
@ -1317,13 +1317,13 @@ void QBtSession::enableUPnP(bool b) {
void QBtSession::enableLSD(bool b) { void QBtSession::enableLSD(bool b) {
if(b) { if(b) {
if(!LSDEnabled) { if(!LSDEnabled) {
qDebug("Enabling LSD"); qDebug("Enabling Local Peer Discovery");
s->start_lsd(); s->start_lsd();
LSDEnabled = true; LSDEnabled = true;
} }
} else { } else {
if(LSDEnabled) { if(LSDEnabled) {
qDebug("Disabling LSD"); qDebug("Disabling Local Peer Discovery");
s->stop_lsd(); s->stop_lsd();
LSDEnabled = false; LSDEnabled = false;
} }

Loading…
Cancel
Save