Browse Source

Code clean up

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
7381b0dcf6
  1. 4
      src/qtlibtorrent/qtorrenthandle.cpp

4
src/qtlibtorrent/qtorrenthandle.cpp

@ -420,9 +420,7 @@ QStringList QTorrentHandle::absolute_files_path_uneeded() const { @@ -420,9 +420,7 @@ QStringList QTorrentHandle::absolute_files_path_uneeded() const {
QDir saveDir(save_path());
QStringList res;
std::vector<int> fp = torrent_handle::file_priorities();
qDebug() << fp.size() << num_files();
Q_ASSERT(fp.size() == num_files());
for(int i = 0; i < num_files(); ++i) {
for(uint i = 0; i < fp.size(); ++i) {
if(fp[i] == 0) {
const QString file_path = QDir::cleanPath(saveDir.absoluteFilePath(filepath_at(i)));
if(file_path.contains(".unwanted"))

Loading…
Cancel
Save