Browse Source

Merge pull request #3191 from Chocobo1/neg_loop_master

Fix potential negative loop bound
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
25e04ee2f3
  1. 4
      src/gui/previewselect.cpp

4
src/gui/previewselect.cpp

@ -59,8 +59,8 @@ PreviewSelect::PreviewSelect(QWidget* parent, BitTorrent::TorrentHandle *const t @@ -59,8 +59,8 @@ PreviewSelect::PreviewSelect(QWidget* parent, BitTorrent::TorrentHandle *const t
previewList->setAlternatingRowColors(pref->useAlternatingRowColors());
// Fill list in
QVector<qreal> fp = torrent->filesProgress();
uint nbFiles = torrent->filesCount();
for (uint i = 0; i < nbFiles; ++i) {
int nbFiles = torrent->filesCount();
for (int i = 0; i < nbFiles; ++i) {
QString fileName = torrent->fileName(i);
if (fileName.endsWith(".!qB"))
fileName.chop(4);

Loading…
Cancel
Save