mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Bug fix in session configuring (queueing)
This commit is contained in:
parent
8e7d0f4dc1
commit
4b8532ea2d
2 changed files with 24 additions and 2 deletions
|
@ -166,11 +166,23 @@ bool bittorrent::isQueueingEnabled() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::setMaxActiveDownloads(int val) {
|
void bittorrent::setMaxActiveDownloads(int val) {
|
||||||
|
if(val != maxActiveDownloads) {
|
||||||
maxActiveDownloads = val;
|
maxActiveDownloads = val;
|
||||||
|
if(queueingEnabled) {
|
||||||
|
updateDownloadQueue();
|
||||||
|
updateUploadQueue();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::setMaxActiveTorrents(int val) {
|
void bittorrent::setMaxActiveTorrents(int val) {
|
||||||
|
if(val != maxActiveTorrents) {
|
||||||
maxActiveTorrents = val;
|
maxActiveTorrents = val;
|
||||||
|
if(queueingEnabled) {
|
||||||
|
updateDownloadQueue();
|
||||||
|
updateUploadQueue();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
||||||
|
@ -262,6 +274,14 @@ void bittorrent::setUploadLimit(QString hash, long val) {
|
||||||
saveTorrentSpeedLimits(hash);
|
saveTorrentSpeedLimits(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int bittorrent::getMaximumActiveDownloads() const {
|
||||||
|
return maxActiveDownloads;
|
||||||
|
}
|
||||||
|
|
||||||
|
int bittorrent::getMaximumActiveTorrents() const {
|
||||||
|
return maxActiveTorrents;
|
||||||
|
}
|
||||||
|
|
||||||
void bittorrent::handleDownloadFailure(QString url, QString reason) {
|
void bittorrent::handleDownloadFailure(QString url, QString reason) {
|
||||||
emit downloadFromUrlFailure(url, reason);
|
emit downloadFromUrlFailure(url, reason);
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,8 @@ class bittorrent : public QObject{
|
||||||
bool isQueueingEnabled() const;
|
bool isQueueingEnabled() const;
|
||||||
int getDlTorrentPriority(QString hash) const;
|
int getDlTorrentPriority(QString hash) const;
|
||||||
int getUpTorrentPriority(QString hash) const;
|
int getUpTorrentPriority(QString hash) const;
|
||||||
|
int getMaximumActiveDownloads() const;
|
||||||
|
int getMaximumActiveTorrents() const;
|
||||||
bool isDownloadQueued(QString hash) const;
|
bool isDownloadQueued(QString hash) const;
|
||||||
bool isUploadQueued(QString hash) const;
|
bool isUploadQueued(QString hash) const;
|
||||||
int loadTorrentPriority(QString hash);
|
int loadTorrentPriority(QString hash);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue