* Bumped version numbers.

* Fixed inconsistent handling of d.get_base_path for single and
multi-torrents. Now both return the cached path even though the
torrent is closed and a new root directory set.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1085 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-11-19 17:25:52 +00:00
parent 15ae43a5ea
commit 6753b45627
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -63,9 +63,9 @@
std::string
retrieve_d_base_path(core::Download* download) {
if (download->file_list()->is_multi_file())
return download->file_list()->root_dir();
return download->file_list()->frozen_root_dir();
else
return download->file_list()->at(0)->frozen_path();
return download->file_list()->empty() ? std::string() : download->file_list()->at(0)->frozen_path();
}
std::string
@@ -73,7 +73,7 @@ retrieve_d_base_filename(core::Download* download) {
const std::string* base;
if (download->file_list()->is_multi_file())
base = &download->file_list()->root_dir();
base = &download->file_list()->frozen_root_dir();
else
base = &download->file_list()->at(0)->frozen_path();