Browse Source

Merge pull request #10988 from Chocobo1/qbext

Fix incomplete file extension not applied for new torrents
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
fd17b9bbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/torrenthandle.cpp

2
src/base/bittorrent/torrenthandle.cpp

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

Loading…
Cancel
Save