Fix save path bugs

This commit is contained in:
Vladimir Golovnev (Glassez)
2016-03-06 09:25:55 +03:00
committed by sledgehammer999
parent 3d107e0588
commit e4bc7852e5
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);
}