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)
int Preferences::getGlobalUploadLimit() const int Preferences::getGlobalUploadLimit() const
{ {
return value("Preferences/Connection/GlobalUPLimit", 50).toInt(); return value("Preferences/Connection/GlobalUPLimit", -1).toInt();
} }
void Preferences::setGlobalUploadLimit(int limit) void Preferences::setGlobalUploadLimit(int limit)

7
src/gui/options.ui

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

Loading…
Cancel
Save