mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
- fixed torrent files filtering (closes #158846)
This commit is contained in:
parent
6ae21c2919
commit
edc625c9c9
4 changed files with 6 additions and 8 deletions
10
TODO
10
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
|
||||
rc7->rc8 changelog:
|
||||
- BUGFIX: Fixed torrent files filtering
|
||||
|
|
|
@ -181,6 +181,7 @@ class PropListDelegate: public QItemDelegate {
|
|||
// } else {
|
||||
model->setData(index, QVariant(HIGH));
|
||||
model->setData(index, QVariant(NORMAL));
|
||||
*filteredFilesChanged = true;
|
||||
// }
|
||||
break;
|
||||
case 2:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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; i<nbRows; ++i){
|
||||
QStandardItem *item = parent->child(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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue