Merge pull request #3209 from ngosang/minor_fixes

Code clean up
This commit is contained in:
sledgehammer999
2015-06-14 11:40:41 +03:00
2 changed files with 12 additions and 19 deletions

View File

@@ -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());