Browse Source

- Enable peer country resolution as a default

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
3987d0b5ef
  1. 18
      src/options.ui
  2. 2
      src/preferences.h

18
src/options.ui

@ -627,7 +627,7 @@ @@ -627,7 +627,7 @@
<x>0</x>
<y>0</y>
<width>620</width>
<height>208</height>
<height>149</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_17">
@ -1081,7 +1081,7 @@ @@ -1081,7 +1081,7 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-4</y>
<y>0</y>
<width>602</width>
<height>513</height>
</rect>
@ -1454,6 +1454,9 @@ @@ -1454,6 +1454,9 @@
<property name="text">
<string>Resolve peer countries</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@ -2301,8 +2304,8 @@ @@ -2301,8 +2304,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>620</width>
<height>488</height>
<width>226</width>
<height>123</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_21">
@ -2369,6 +2372,9 @@ @@ -2369,6 +2372,9 @@
</item>
<item>
<spacer name="mynornamespacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
@ -2395,8 +2401,8 @@ @@ -2395,8 +2401,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>620</width>
<height>488</height>
<width>218</width>
<height>220</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_23">

2
src/preferences.h

@ -201,7 +201,7 @@ public: @@ -201,7 +201,7 @@ public:
static bool resolvePeerCountries() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerCountries"), false).toBool();
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerCountries"), true).toBool();
}
static bool resolvePeerHostNames() {

Loading…
Cancel
Save