mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Added priority buttons
This commit is contained in:
parent
600308aaa1
commit
ca118697e9
4 changed files with 69 additions and 32 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue