mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Force torrentfilesmodel list repaint when progress and priorities are updated
This commit is contained in:
parent
62604e32c0
commit
154673a99b
@ -269,12 +269,14 @@ public:
|
|||||||
TreeItem *item = files_index[i];
|
TreeItem *item = files_index[i];
|
||||||
item->setProgress((float)fp[i]/(float)item->getSize());
|
item->setProgress((float)fp[i]/(float)item->getSize());
|
||||||
}
|
}
|
||||||
|
emit layoutChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateFilesPriorities(std::vector<int> fprio) {
|
void updateFilesPriorities(std::vector<int> fprio) {
|
||||||
for(unsigned int i=0; i<fprio.size(); ++i) {
|
for(unsigned int i=0; i<fprio.size(); ++i) {
|
||||||
files_index[i]->setPriority(fprio[i]);
|
files_index[i]->setPriority(fprio[i]);
|
||||||
}
|
}
|
||||||
|
emit layoutChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<int> getFilesPriorities(unsigned int nbFiles) const {
|
std::vector<int> getFilesPriorities(unsigned int nbFiles) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user