mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
- Added priority buttons
This commit is contained in:
@@ -162,7 +162,7 @@ void bittorrent::setMaxActiveDlTorrents(int val) {
|
||||
maxActiveDlTorrents = val;
|
||||
}
|
||||
|
||||
void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
||||
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
||||
int index = downloadQueue->indexOf(hash);
|
||||
Q_ASSERT(index != -1);
|
||||
if(index > 0) {
|
||||
@@ -173,7 +173,7 @@ void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
||||
}
|
||||
}
|
||||
|
||||
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
||||
void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
||||
int index = downloadQueue->indexOf(hash);
|
||||
Q_ASSERT(index != -1);
|
||||
if(index >= 0 && index < (downloadQueue->size()-1)) {
|
||||
|
||||
Reference in New Issue
Block a user