From 986bb1a8ac883366c7fda46f68c906add1645230 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Tue, 13 Oct 2015 21:58:25 +0300 Subject: [PATCH] Use default save path if save path is not set. --- src/core/bittorrent/torrenthandle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/bittorrent/torrenthandle.cpp b/src/core/bittorrent/torrenthandle.cpp index 35e10e892..ce4d22742 100644 --- a/src/core/bittorrent/torrenthandle.cpp +++ b/src/core/bittorrent/torrenthandle.cpp @@ -201,6 +201,9 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle , m_pauseAfterRecheck(false) , m_needSaveResumeData(false) { + if (m_savePath.isEmpty()) + m_savePath = Utils::Fs::toNativePath(m_session->defaultSavePath()); + initialize(); if (!data.resumed) {