Browse Source

Don't use a default upload limit. Closes #3275.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
1b430abb16
  1. 2
      src/core/preferences.cpp
  2. 7
      src/gui/options.ui

2
src/core/preferences.cpp

@ -662,7 +662,7 @@ void Preferences::setGlobalDownloadLimit(int limit) @@ -662,7 +662,7 @@ void Preferences::setGlobalDownloadLimit(int limit)
int Preferences::getGlobalUploadLimit() const
{
return value("Preferences/Connection/GlobalUPLimit", 50).toInt();
return value("Preferences/Connection/GlobalUPLimit", -1).toInt();
}
void Preferences::setGlobalUploadLimit(int limit)

7
src/gui/options.ui

@ -1573,15 +1573,12 @@ @@ -1573,15 +1573,12 @@
<property name="text">
<string>Upload:</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinUploadLimit">
<property name="enabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="suffix">
<string/>
@ -1593,7 +1590,7 @@ @@ -1593,7 +1590,7 @@
<number>1000000</number>
</property>
<property name="value">
<number>50</number>
<number>100</number>
</property>
</widget>
</item>

Loading…
Cancel
Save