mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
parent
a8ade3a04b
commit
bc71827c01
16 changed files with 179 additions and 145 deletions
|
@ -85,10 +85,9 @@ PreviewSelectDialog::PreviewSelectDialog(QWidget *parent, const BitTorrent::Torr
|
|||
m_ui->previewList->setAlternatingRowColors(pref->useAlternatingRowColors());
|
||||
// Fill list in
|
||||
const QVector<qreal> fp = torrent->filesProgress();
|
||||
int nbFiles = torrent->filesCount();
|
||||
for (int i = 0; i < nbFiles; ++i)
|
||||
for (int i = 0; i <= torrent->filesCount(); ++i)
|
||||
{
|
||||
QString fileName = torrent->fileName(i);
|
||||
QString fileName = Utils::Fs::fileName(torrent->filePath(i));
|
||||
if (fileName.endsWith(QB_EXT))
|
||||
fileName.chop(QB_EXT.length());
|
||||
if (Utils::Misc::isPreviewable(fileName))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue