diff --git a/src/previewselect.cpp b/src/previewselect.cpp index 5ba887298..888653ae0 100644 --- a/src/previewselect.cpp +++ b/src/previewselect.cpp @@ -39,6 +39,7 @@ #include "misc.h" #include "previewlistdelegate.h" #include "previewselect.h" +#include "fs_utils.h" PreviewSelect::PreviewSelect(QWidget* parent, QTorrentHandle h): QDialog(parent), h(h) { setupUi(this); @@ -58,7 +59,9 @@ PreviewSelect::PreviewSelect(QWidget* parent, QTorrentHandle h): QDialog(parent) unsigned int nbFiles = h.num_files(); for (unsigned int i=0; irowCount(); previewListModel->insertRow(row); diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 6b163748d..3872c0245 100755 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -1731,7 +1731,10 @@ bool QBtSession::isFilePreviewPossible(const QString &hash) const { } const unsigned int nbFiles = h.num_files(); for (unsigned int i=0; i