mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Code clean up
This commit is contained in:
parent
8589eb7c0f
commit
7381b0dcf6
@ -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…
x
Reference in New Issue
Block a user