mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-24 18:44:52 +08:00
Remove unneeded check on filenames
The same check is performed in fsutils::fileExtension()
This commit is contained in:
parent
47e7b3fac2
commit
301294fbff
@ -1755,10 +1755,7 @@ bool QBtSession::isFilePreviewPossible(const QString &hash) const {
|
||||
}
|
||||
const unsigned int nbFiles = h.num_files();
|
||||
for (unsigned int i=0; i<nbFiles; ++i) {
|
||||
QString filename = h.filename_at(i);
|
||||
if (filename.endsWith(".!qB"))
|
||||
filename.chop(4);
|
||||
const QString extension = fsutils::fileExtension(filename);
|
||||
const QString extension = fsutils::fileExtension(h.filename_at(i));
|
||||
if (misc::isPreviewable(extension))
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user