From 38fa6d2aeedd31d140ef8d2e9a624b5515beddd7 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 28 Jul 2019 13:05:46 +0800 Subject: [PATCH] Fix incomplete file extension not applied for new torrents --- src/base/bittorrent/torrenthandle.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 53baf9e52..6ef4e2e4f 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/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) { - 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());