- Added priority buttons

This commit is contained in:
Christophe Dumez 2008-07-14 20:01:21 +00:00
parent 600308aaa1
commit ca118697e9
4 changed files with 69 additions and 32 deletions

View file

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