mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Made sure the file priorities in torrent properties don't overwrite "download first/last pieces first" option
This commit is contained in:
parent
ef4c320af7
commit
46f081d888
1 changed files with 5 additions and 0 deletions
|
@ -529,7 +529,12 @@ void PropertiesWidget::deleteSelectedUrlSeeds(){
|
|||
bool PropertiesWidget::savePiecesPriorities() {
|
||||
qDebug("Saving pieces priorities");
|
||||
std::vector<int> priorities = PropListModel->getFilesPriorities(h.get_torrent_info().num_files());
|
||||
bool first_last_piece_first = false;
|
||||
if(h.first_last_piece_first())
|
||||
first_last_piece_first = true;
|
||||
h.prioritize_files(priorities);
|
||||
if(first_last_piece_first)
|
||||
h.prioritize_first_last_piece(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue