return previosly deleted empty lines

This commit is contained in:
Stiliyan Tonev (Bark) 2025-01-09 11:42:15 +02:00
commit 22e139d48d
2 changed files with 2 additions and 0 deletions

View file

@ -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 {};
}

View file

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