mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
Reverting fs_utils.cpp and fixing callers instead
This commit is contained in:
committed by
Christophe Dumez
parent
e025b2aa10
commit
65a81f4fca
@@ -59,6 +59,8 @@ PreviewSelect::PreviewSelect(QWidget* parent, QTorrentHandle h): QDialog(parent)
|
||||
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);
|
||||
QString extension = fsutils::fileExtension(fileName).toUpper();
|
||||
if (misc::isPreviewable(extension)) {
|
||||
int row = previewListModel->rowCount();
|
||||
|
||||
Reference in New Issue
Block a user