mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
BUGFIX: Fix file filtering in complex torrents
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- BUGFIX: Fix compilation with Qt 4.4
|
- BUGFIX: Fix compilation with Qt 4.4
|
||||||
- BUGFIX: Fix Web UI compatibility with Safari
|
- BUGFIX: Fix Web UI compatibility with Safari
|
||||||
- BUGFIX: Fix progress display with cleanlook style
|
- BUGFIX: Fix progress display with cleanlook style
|
||||||
|
- BUGFIX: Fix file filtering in complex torrents
|
||||||
|
|
||||||
* Sun Mar 14 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.0
|
* Sun Mar 14 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.0
|
||||||
- FEATURE: User can set alternative speed limits for fast toggling
|
- FEATURE: User can set alternative speed limits for fast toggling
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public:
|
|||||||
TreeItem(QList<QVariant> data) {
|
TreeItem(QList<QVariant> data) {
|
||||||
parentItem = 0;
|
parentItem = 0;
|
||||||
type = ROOT;
|
type = ROOT;
|
||||||
|
Q_ASSERT(data.size() == 4);
|
||||||
itemData = data;
|
itemData = data;
|
||||||
total_done = 0;
|
total_done = 0;
|
||||||
}
|
}
|
||||||
@@ -201,12 +202,13 @@ public:
|
|||||||
return itemData.value(3).toInt();
|
return itemData.value(3).toInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPriority(int new_prio, bool update_children=true) {
|
void setPriority(int new_prio, bool update_children=true, bool update_parent=true) {
|
||||||
int old_prio = getPriority();
|
int old_prio = getPriority();
|
||||||
if(old_prio != new_prio) {
|
if(old_prio != new_prio) {
|
||||||
|
qDebug("setPriority(%s, %d)", qPrintable(getName()), new_prio);
|
||||||
itemData.replace(3, new_prio);
|
itemData.replace(3, new_prio);
|
||||||
// Update parent
|
// Update parent
|
||||||
if(parentItem) {
|
if(update_parent && parentItem) {
|
||||||
parentItem->updateSize();
|
parentItem->updateSize();
|
||||||
parentItem->updateProgress();
|
parentItem->updateProgress();
|
||||||
parentItem->updatePriority();
|
parentItem->updatePriority();
|
||||||
@@ -215,9 +217,13 @@ public:
|
|||||||
// Update children
|
// Update children
|
||||||
if(update_children) {
|
if(update_children) {
|
||||||
foreach(TreeItem* child, childItems) {
|
foreach(TreeItem* child, childItems) {
|
||||||
child->setPriority(new_prio);
|
child->setPriority(new_prio, true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(type==FOLDER) {
|
||||||
|
updateSize();
|
||||||
|
updateProgress();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void updatePriority() {
|
void updatePriority() {
|
||||||
|
|||||||
Reference in New Issue
Block a user