mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 12:21:12 +00:00
Code clean up
This commit is contained in:
parent
efe5ca6242
commit
f9ece8b447
@ -360,8 +360,9 @@ void options_imp::saveOptions(){
|
||||
pref.setSessionPort(getPort());
|
||||
pref.setUPnPEnabled(isUPnPEnabled());
|
||||
pref.setNATPMPEnabled(isNATPMPEnabled());
|
||||
pref.setGlobalDownloadLimit(getGlobalBandwidthLimits().first);
|
||||
pref.setGlobalUploadLimit(getGlobalBandwidthLimits().second);
|
||||
const QPair<int, int> down_up_limit = getGlobalBandwidthLimits();
|
||||
pref.setGlobalDownloadLimit(down_up_limit.first);
|
||||
pref.setGlobalUploadLimit(down_up_limit.second);
|
||||
pref.setAltGlobalDownloadLimit(spinDownloadLimitAlt->value());
|
||||
pref.setAltGlobalUploadLimit(spinUploadLimitAlt->value());
|
||||
pref.setSchedulerEnabled(check_schedule->isChecked());
|
||||
|
@ -344,7 +344,7 @@ public:
|
||||
}
|
||||
|
||||
int getGlobalDownloadLimit() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/GlobalDLLimit"), -1).toInt();
|
||||
return value("Preferences/Connection/GlobalDLLimit", -1).toInt();
|
||||
}
|
||||
|
||||
void setGlobalDownloadLimit(int limit) {
|
||||
@ -353,7 +353,7 @@ public:
|
||||
}
|
||||
|
||||
int getGlobalUploadLimit() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/GlobalUPLimit"), 50).toInt();
|
||||
return value("Preferences/Connection/GlobalUPLimit", 50).toInt();
|
||||
}
|
||||
|
||||
void setGlobalUploadLimit(int limit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user