diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index ba9fa5019..6ffe2442b 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2062,8 +2062,10 @@ LoadTorrentParams Session::initLoadTorrentParams(const AddTorrentParams &addTorr const bool useAutoTMM = addTorrentParams.useAutoTMM.value_or(!isAutoTMMDisabledByDefault()); if (useAutoTMM) loadTorrentParams.savePath = ""; - else if (addTorrentParams.savePath.trimmed().isEmpty()) + else if (addTorrentParams.savePath.isEmpty()) loadTorrentParams.savePath = defaultSavePath(); + else if (QDir(addTorrentParams.savePath).isRelative()) + loadTorrentParams.savePath = QDir(defaultSavePath()).absoluteFilePath(addTorrentParams.savePath); else loadTorrentParams.savePath = normalizePath(addTorrentParams.savePath);