Remove unneeded check on filenames

The same check is performed in fsutils::fileExtension()
This commit is contained in:
Gabriele 2014-12-15 23:00:00 +01:00
parent 47e7b3fac2
commit 301294fbff

View File

@ -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;
}