mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Merge pull request #3191 from Chocobo1/neg_loop_master
Fix potential negative loop bound
This commit is contained in:
commit
25e04ee2f3
@ -59,8 +59,8 @@ PreviewSelect::PreviewSelect(QWidget* parent, BitTorrent::TorrentHandle *const t
|
|||||||
previewList->setAlternatingRowColors(pref->useAlternatingRowColors());
|
previewList->setAlternatingRowColors(pref->useAlternatingRowColors());
|
||||||
// Fill list in
|
// Fill list in
|
||||||
QVector<qreal> fp = torrent->filesProgress();
|
QVector<qreal> fp = torrent->filesProgress();
|
||||||
uint nbFiles = torrent->filesCount();
|
int nbFiles = torrent->filesCount();
|
||||||
for (uint i = 0; i < nbFiles; ++i) {
|
for (int i = 0; i < nbFiles; ++i) {
|
||||||
QString fileName = torrent->fileName(i);
|
QString fileName = torrent->fileName(i);
|
||||||
if (fileName.endsWith(".!qB"))
|
if (fileName.endsWith(".!qB"))
|
||||||
fileName.chop(4);
|
fileName.chop(4);
|
||||||
|
Loading…
Reference in New Issue
Block a user