1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 20:44:15 +00:00

Use default save path if save path is not set.

This commit is contained in:
Vladimir Golovnev (Glassez) 2015-10-13 21:58:25 +03:00
parent d413c2061c
commit 986bb1a8ac

View File

@ -201,6 +201,9 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle
, m_pauseAfterRecheck(false) , m_pauseAfterRecheck(false)
, m_needSaveResumeData(false) , m_needSaveResumeData(false)
{ {
if (m_savePath.isEmpty())
m_savePath = Utils::Fs::toNativePath(m_session->defaultSavePath());
initialize(); initialize();
if (!data.resumed) { if (!data.resumed) {