From 82e548a2fd12e5647400dbce5dc232a376722f51 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 6 Nov 2007 20:55:23 +0000 Subject: [PATCH] - Fixed a bug in torrent files filtering (closes #158846) --- src/PropListDelegate.h | 1 + src/bittorrent.cpp | 1 + src/properties_imp.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/PropListDelegate.h b/src/PropListDelegate.h index 155d92c8e..701ef72e0 100644 --- a/src/PropListDelegate.h +++ b/src/PropListDelegate.h @@ -181,6 +181,7 @@ class PropListDelegate: public QItemDelegate { // } else { model->setData(index, QVariant(HIGH)); model->setData(index, QVariant(NORMAL)); + *filteredFilesChanged = true; // } break; case 2: diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 95ca619ef..aa3bdca4c 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -708,6 +708,7 @@ void bittorrent::loadTorrentSpeedLimits(QString hash) { // Read pieces priorities from .priorities file // and ask QTorrentHandle to consider them void bittorrent::loadFilesPriorities(QTorrentHandle &h) { + qDebug("Applying pieces priorities"); if(!h.is_valid()) { qDebug("/!\\ Error: Invalid handle"); return; diff --git a/src/properties_imp.cpp b/src/properties_imp.cpp index b322b0e7f..ffd8c37a5 100644 --- a/src/properties_imp.cpp +++ b/src/properties_imp.cpp @@ -304,6 +304,7 @@ bool properties::allFiltered() const { void properties::getPriorities(QStandardItem *parent, int *priorities) { + qDebug("In getPriorities"); unsigned int nbRows = parent->rowCount(); for(unsigned int i=0; ichild(i, INDEX); @@ -313,6 +314,7 @@ void properties::getPriorities(QStandardItem *parent, int *priorities) { } else { item = parent->child(i, PRIORITY); priorities[index] = item->text().toInt(); + qDebug("File at index %d has priority %d", index, priorities[index]); } } }