Browse Source

Minor code optimization

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
25278beb2f
  1. 3
      src/bittorrent.cpp

3
src/bittorrent.cpp

@ -1820,7 +1820,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { @@ -1820,7 +1820,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
if(!defaultTempPath.isEmpty()) {
// Check if directory is different
QDir current_dir(h.save_path());
QDir save_dir(getSavePath(h.hash()));
QDir save_dir(getSavePath(hash));
if(current_dir != save_dir) {
h.move_storage(save_dir.path());
}
@ -2048,7 +2048,6 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { @@ -2048,7 +2048,6 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
}
emit torrentFinishedChecking(h);
emit metadataReceived(h);
if(torrentsToPausedAfterChecking.contains(hash)) {
torrentsToPausedAfterChecking.removeOne(hash);
h.pause();

Loading…
Cancel
Save