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

This commit is contained in:
sledgehammer999 2015-06-28 19:21:47 +03:00
parent e4062e0f35
commit 1b430abb16
2 changed files with 3 additions and 6 deletions

View file

@ -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)

View file

@ -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 @@
<number>1000000</number>
</property>
<property name="value">
<number>50</number>
<number>100</number>
</property>
</widget>
</item>