mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Merge pull request #9303 from Chocobo1/fix
Fix I/O error after fetching magnet metadata
This commit is contained in:
@@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri)
|
|||||||
p.max_connections = maxConnectionsPerTorrent();
|
p.max_connections = maxConnectionsPerTorrent();
|
||||||
p.max_uploads = maxUploadsPerTorrent();
|
p.max_uploads = maxUploadsPerTorrent();
|
||||||
|
|
||||||
QString savePath = QString("%1/%2").arg(Utils::Fs::tempPath(), hash);
|
const QString savePath = Utils::Fs::tempPath() + static_cast<QString>(hash);
|
||||||
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
|
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
|
||||||
|
|
||||||
// Forced start
|
// Forced start
|
||||||
|
|||||||
Reference in New Issue
Block a user