From edc625c9c930fea4b39f866bbdbdbd702a315f76 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 6 Nov 2007 20:57:36 +0000 Subject: [PATCH] - fixed torrent files filtering (closes #158846) --- TODO | 10 ++-------- src/PropListDelegate.h | 1 + src/bittorrent.cpp | 1 + src/properties_imp.cpp | 2 ++ 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 0176928f6..86ac628ab 100644 --- a/TODO +++ b/TODO @@ -57,11 +57,5 @@ - Recheck doc - Translations update (IN PROGRESS) -rc6->rc7 changelog: -- BUGFIX: Catching DHT exception in case there is a problem -- BUGFIX: Removed build dependency on Python -- BUGFIX: Fixed a bug in children update when changing files priorities -- BUGFIX: Pause/Start All now affect all tabs, not only the current one -- BUGFIX: Don't reload all torrents everytime settings are saved -- BUGFIX: Don't reload seeding torrents anymore (no point) -- I18N: Updated Turkish translation \ No newline at end of file +rc7->rc8 changelog: +- BUGFIX: Fixed torrent files filtering 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 beb367d31..92106436f 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]); } } }