mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Code clean up
This changes were proposed by @PiotrNawrot in these PRs: #2967, #2970.
This commit is contained in:
parent
f5b0008158
commit
4a76526417
2 changed files with 12 additions and 19 deletions
|
@ -555,16 +555,13 @@ void AddNewTorrentDialog::displayContentTreeMenu(const QPoint&)
|
|||
}
|
||||
else {
|
||||
int prio = prio::NORMAL;
|
||||
if (act == ui->actionHigh) {
|
||||
if (act == ui->actionHigh)
|
||||
prio = prio::HIGH;
|
||||
}
|
||||
else {
|
||||
if (act == ui->actionMaximum)
|
||||
prio = prio::MAXIMUM;
|
||||
else
|
||||
if (act == ui->actionNot_downloaded)
|
||||
prio = prio::IGNORED;
|
||||
}
|
||||
else if (act == ui->actionMaximum)
|
||||
prio = prio::MAXIMUM;
|
||||
else if (act == ui->actionNot_downloaded)
|
||||
prio = prio::IGNORED;
|
||||
|
||||
qDebug("Setting files priority");
|
||||
foreach (const QModelIndex &index, selectedRows) {
|
||||
qDebug("Setting priority(%d) for file at row %d", prio, index.row());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue