Browse Source

Use default save path if save path is not set.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
986bb1a8ac
  1. 3
      src/core/bittorrent/torrenthandle.cpp

3
src/core/bittorrent/torrenthandle.cpp

@ -201,6 +201,9 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle @@ -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) {

Loading…
Cancel
Save