1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Merge pull request #10988 from Chocobo1/qbext

Fix incomplete file extension not applied for new torrents
This commit is contained in:
Mike Tzou 2019-07-29 11:17:38 +08:00 committed by GitHub
commit fd17b9bbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1526,8 +1526,6 @@ void TorrentHandle::moveStorage(const QString &newPath, bool overwrite)
void TorrentHandle::renameFile(const int index, const QString &name)
{
if (m_startupState != Started) return;
m_oldPath[LTFileIndex {index}].push_back(filePath(index));
++m_renameCount;
m_nativeHandle.rename_file(LTFileIndex {index}, Utils::Fs::toNativePath(name).toStdString());