mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Merge pull request #3938 from glassez/path
Use default save path if save path is not set.
This commit is contained in:
commit
41c953de46
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue