mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Startup optimization
This commit is contained in:
parent
b80940ac4f
commit
e17ca355ae
1 changed files with 18 additions and 17 deletions
|
@ -1824,7 +1824,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool was_already_seeded = TorrentPersistentData::isSeed(hash);
|
bool was_already_seeded = TorrentPersistentData::isSeed(hash);
|
||||||
if(!was_already_seeded)
|
if(!was_already_seeded) {
|
||||||
h.save_resume_data();
|
h.save_resume_data();
|
||||||
// Check if there are torrent files inside
|
// Check if there are torrent files inside
|
||||||
for(int i=0; i<h.get_torrent_info().num_files(); ++i) {
|
for(int i=0; i<h.get_torrent_info().num_files(); ++i) {
|
||||||
|
@ -1845,6 +1845,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Recheck if the user asked to
|
// Recheck if the user asked to
|
||||||
if(Preferences::recheckTorrentsOnCompletion() && !was_already_seeded) {
|
if(Preferences::recheckTorrentsOnCompletion() && !was_already_seeded) {
|
||||||
// Remember finished state
|
// Remember finished state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue