mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -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:
|
||||
return QString::number((torrent->wantedSize() * 100) / torrent->totalSize()) + u'%';
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
@ -242,6 +242,7 @@ int TransferListSortModel::compare(const QModelIndex &left, const QModelIndex &r
|
|||
const auto totalR = right.data(TransferListModel::AdditionalUnderlyingDataRole).toInt();
|
||||
return threeWayCompare(totalL, totalR);
|
||||
}
|
||||
|
||||
default:
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Missing comparison case");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue