mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 14:42:29 -06:00
Do not report any progress for disabled files (Closes #56731485)
(cherry picked from commit 4ca665eb0c)
This commit is contained in:
@@ -194,7 +194,7 @@ public:
|
||||
|
||||
qreal getProgress() const {
|
||||
if(getPriority() == 0)
|
||||
return 0.;
|
||||
return -1;
|
||||
qulonglong size = getSize();
|
||||
if(size > 0)
|
||||
return total_done/(float)getSize();
|
||||
@@ -313,6 +313,8 @@ public:
|
||||
}
|
||||
|
||||
QVariant data(int column) const {
|
||||
if(column == COL_PROGRESS)
|
||||
return getProgress();
|
||||
return itemData.value(column);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user