mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Minor code optimization
This commit is contained in:
parent
5922ffff62
commit
25278beb2f
1 changed files with 1 additions and 2 deletions
|
@ -1820,7 +1820,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
if(!defaultTempPath.isEmpty()) {
|
if(!defaultTempPath.isEmpty()) {
|
||||||
// Check if directory is different
|
// Check if directory is different
|
||||||
QDir current_dir(h.save_path());
|
QDir current_dir(h.save_path());
|
||||||
QDir save_dir(getSavePath(h.hash()));
|
QDir save_dir(getSavePath(hash));
|
||||||
if(current_dir != save_dir) {
|
if(current_dir != save_dir) {
|
||||||
h.move_storage(save_dir.path());
|
h.move_storage(save_dir.path());
|
||||||
}
|
}
|
||||||
|
@ -2048,7 +2048,6 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit torrentFinishedChecking(h);
|
emit torrentFinishedChecking(h);
|
||||||
emit metadataReceived(h);
|
|
||||||
if(torrentsToPausedAfterChecking.contains(hash)) {
|
if(torrentsToPausedAfterChecking.contains(hash)) {
|
||||||
torrentsToPausedAfterChecking.removeOne(hash);
|
torrentsToPausedAfterChecking.removeOne(hash);
|
||||||
h.pause();
|
h.pause();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue