Improve torrent name handling

This commit is contained in:
Vladimir Golovnev (Glassez) 2020-12-10 09:42:32 +03:00 committed by sledgehammer999
parent 78859415d6
commit b8f1142abe
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
3 changed files with 9 additions and 13 deletions

View file

@ -661,9 +661,7 @@ QString Session::tempPath() const
QString Session::torrentTempPath(const TorrentInfo &torrentInfo) const
{
if ((torrentInfo.filesCount() > 1) && !torrentInfo.hasRootFolder())
return tempPath()
+ QString::fromStdString(torrentInfo.nativeInfo()->orig_files().name())
+ '/';
return tempPath() + torrentInfo.name() + '/';
return tempPath();
}