mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
return previosly deleted empty lines
This commit is contained in:
parent
ae74a1b914
commit
22e139d48d
2 changed files with 2 additions and 0 deletions
|
@ -447,6 +447,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
|
||||||
case TR_PERCENT_SELECTED:
|
case TR_PERCENT_SELECTED:
|
||||||
return QString::number((torrent->wantedSize() * 100) / torrent->totalSize()) + u'%';
|
return QString::number((torrent->wantedSize() * 100) / torrent->totalSize()) + u'%';
|
||||||
}
|
}
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,7 @@ int TransferListSortModel::compare(const QModelIndex &left, const QModelIndex &r
|
||||||
const auto totalR = right.data(TransferListModel::AdditionalUnderlyingDataRole).toInt();
|
const auto totalR = right.data(TransferListModel::AdditionalUnderlyingDataRole).toInt();
|
||||||
return threeWayCompare(totalL, totalR);
|
return threeWayCompare(totalL, totalR);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Missing comparison case");
|
Q_ASSERT_X(false, Q_FUNC_INFO, "Missing comparison case");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue