* Renamed 't.get_enabled' to 't.is_enabled'.

* The torrent is no longer closed on finished for on_finished
commands, instead d.set_directory causes the download to call
close_directly.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@974 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-09-05 17:52:16 +00:00
parent 48f13fb7a3
commit 3b82216a1b
5 changed files with 40 additions and 28 deletions
+3
View File
@@ -52,6 +52,7 @@
#include "control.h"
#include "download.h"
#include "manager.h"
namespace core {
@@ -158,6 +159,8 @@ void
Download::set_root_directory(const std::string& path) {
torrent::FileList* fileList = m_download.file_list();
control->core()->download_list()->close_directly(this);
if (path.empty()) {
fileList->set_root_dir("./" + (fileList->is_multi_file() ? m_download.name() : std::string()));