mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
* 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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user