mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- BUGFIX: Don't reload seeding torrents anymore (no point)
This commit is contained in:
parent
85fe900afe
commit
f836be6736
1
TODO
1
TODO
@ -63,4 +63,5 @@ rc6->rc7 changelog:
|
||||
- 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
|
@ -85,11 +85,10 @@ void bittorrent::preAllocateAllFiles(bool b) {
|
||||
if(change) {
|
||||
qDebug("PreAllocateAll changed, reloading all torrents!");
|
||||
preAllocateAll = b;
|
||||
// Reload All Torrents
|
||||
std::vector<torrent_handle> handles = s->get_torrents();
|
||||
unsigned int nbHandles = handles.size();
|
||||
for(unsigned int i=0; i<nbHandles; ++i) {
|
||||
QTorrentHandle h = handles[i];
|
||||
// Reload All unfinished torrents
|
||||
QString hash;
|
||||
foreach(hash, unfinishedTorrents) {
|
||||
QTorrentHandle h = getTorrentHandle(hash);
|
||||
if(!h.is_valid()) {
|
||||
qDebug("/!\\ Error: Invalid handle");
|
||||
continue;
|
||||
@ -1226,6 +1225,7 @@ void bittorrent::reloadTorrent(const QTorrentHandle &h, bool full_alloc) {
|
||||
// Add torrent again to session
|
||||
unsigned int timeout = 0;
|
||||
while(h.is_valid() && timeout < 6) {
|
||||
qDebug("Waiting for the torrent to be removed...");
|
||||
SleeperThread::msleep(1000);
|
||||
++timeout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user