From 2dd65b9eb94dc8b303b56e590e8022f52e878293 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 18 Sep 2015 01:38:11 +0300 Subject: [PATCH] Partial backport of cf3a87ed55f9ed721a89730f6b17dd5c8b67989b. --- src/webui/btjson.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp index a5754a7f4..5e4c33dc2 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -456,10 +456,7 @@ QByteArray btjson::getPropertiesForTorrent(const QString& hash) return QByteArray(); // Save path - QString save_path = fsutils::toNativePath(TorrentPersistentData::instance()->getSavePath(hash)); - if (save_path.isEmpty()) - save_path = fsutils::toNativePath(h.save_path()); - data[KEY_PROP_SAVE_PATH] = save_path; + data[KEY_PROP_SAVE_PATH] = fsutils::toNativePath(h.root_path()); data[KEY_PROP_CREATION_DATE] = h.creation_date_unix(); data[KEY_PROP_PIECE_SIZE] = static_cast(h.piece_length()); data[KEY_PROP_COMMENT] = h.comment();