Browse Source

Correctly iterate through the files of torrent

PR #15535.
adaptive-webui-19844
Vladimir Golovnev 3 years ago committed by GitHub
parent
commit
c382191e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/previewselectdialog.cpp

2
src/gui/previewselectdialog.cpp

@ -85,7 +85,7 @@ PreviewSelectDialog::PreviewSelectDialog(QWidget *parent, const BitTorrent::Torr @@ -85,7 +85,7 @@ PreviewSelectDialog::PreviewSelectDialog(QWidget *parent, const BitTorrent::Torr
m_ui->previewList->setAlternatingRowColors(pref->useAlternatingRowColors());
// Fill list in
const QVector<qreal> fp = torrent->filesProgress();
for (int i = 0; i <= torrent->filesCount(); ++i)
for (int i = 0; i < torrent->filesCount(); ++i)
{
QString fileName = Utils::Fs::fileName(torrent->filePath(i));
if (fileName.endsWith(QB_EXT))

Loading…
Cancel
Save