mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
parent
9f6130cbaa
commit
f44341a8e2
11 changed files with 63 additions and 105 deletions
|
@ -43,7 +43,6 @@
|
|||
#include <QVector>
|
||||
#include <QWheelEvent>
|
||||
|
||||
#include "base/bittorrent/common.h"
|
||||
#include "base/bittorrent/session.h"
|
||||
#include "base/bittorrent/torrent.h"
|
||||
#include "base/bittorrent/trackerentry.h"
|
||||
|
@ -93,9 +92,7 @@ namespace
|
|||
|
||||
for (const QString &filePath : asConst(torrent->filePaths()))
|
||||
{
|
||||
QString fileName = Utils::Fs::fileName(filePath);
|
||||
if (fileName.endsWith(QB_EXT))
|
||||
fileName.chop(QB_EXT.length());
|
||||
const QString fileName = Utils::Fs::fileName(filePath);
|
||||
if (Utils::Misc::isPreviewable(fileName))
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue