Fix save path bugs

This commit is contained in:
Vladimir Golovnev (Glassez)
2016-03-06 09:25:55 +03:00
parent 45617e086c
commit c047ef5b37
2 changed files with 24 additions and 16 deletions

View File

@@ -1172,6 +1172,12 @@ void TorrentHandle::move(QString path)
m_useASM = false;
m_session->handleTorrentSavingModeChanged(this);
path = Utils::Fs::fromNativePath(path.trimmed());
if (path.isEmpty())
path = m_session->defaultSavePath();
if (!path.endsWith('/'))
path += '/';
move_impl(path);
}