diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index e36c69f36..dce1f1248 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri) p.max_connections = maxConnectionsPerTorrent(); p.max_uploads = maxUploadsPerTorrent(); - QString savePath = QString("%1/%2").arg(Utils::Fs::tempPath(), hash); + const QString savePath = Utils::Fs::tempPath() + static_cast(hash); p.save_path = Utils::Fs::toNativePath(savePath).toStdString(); // Forced start