mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Improve torrent name handling
This commit is contained in:
parent
78859415d6
commit
b8f1142abe
3 changed files with 9 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue