Browse Source

Merge pull request #6252 from evsh/fix-6248

Do not remove added files unconditionally. Closes #6248
adaptive-webui-19844
sledgehammer999 8 years ago committed by GitHub
parent
commit
5a611b66a5
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -1576,8 +1576,10 @@ bool Session::addTorrent(QString source, const AddTorrentParams &params) @@ -1576,8 +1576,10 @@ bool Session::addTorrent(QString source, const AddTorrentParams &params)
}
else {
TorrentFileGuard guard(source);
if (addTorrent_impl(params, MagnetUri(), TorrentInfo::loadFromFile(source))) {
guard.markAsAddedToSession();
return addTorrent_impl(params, MagnetUri(), TorrentInfo::loadFromFile(source));
return true;
}
}
return false;

Loading…
Cancel
Save