mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 02:36:10 +03:00
BUGFIX: Improve magnet save path handling (clsoes #683395)
This commit is contained in:
parent
20630e91ec
commit
6744ee8a4d
2 changed files with 4 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
- BUGFIX: Fix two advanced settings (ignore limits on LAN and protocol
|
||||
overhead inclusion in rate limiter)
|
||||
- BUGFIX: Fix strict super seeding (was not working)
|
||||
- BUGFIX: Improve magnet save path handling (clsoes #683395)
|
||||
- COSMETIC: Replaced message box by on-screen notification for download errors
|
||||
- COSMETIC: Improved the torrent creation tool appearance
|
||||
- COSMETIC: Use country flags by Mark James (Thanks to Dmytro Pukha)
|
||||
|
|
|
@ -855,8 +855,7 @@ QTorrentHandle QBtSession::addMagnetUri(QString magnet_uri, bool resumed) {
|
|||
add_torrent_params p = initializeAddTorrentParams(hash);
|
||||
|
||||
// Get save path
|
||||
QString torrent_name = misc::magnetUriToName(magnet_uri);
|
||||
const QString savePath(getSavePath(hash, false, QString::null, torrent_name));
|
||||
const QString savePath(getSavePath(hash, false));
|
||||
if(!defaultTempPath.isEmpty() && !TorrentPersistentData::isSeed(hash) && resumed) {
|
||||
qDebug("addMagnetURI: Temp folder is enabled.");
|
||||
QString torrent_tmp_path = defaultTempPath.replace("\\", "/");
|
||||
|
@ -2173,10 +2172,8 @@ void QBtSession::readAlerts() {
|
|||
torrent_tmp_path += root_folder;
|
||||
h.move_storage(torrent_tmp_path);
|
||||
} else {
|
||||
QString save_path = h.save_path().replace("\\", "/");
|
||||
if(!save_path.endsWith("/")) save_path += "/";
|
||||
save_path += root_folder;
|
||||
h.move_storage(save_path);
|
||||
QString save_path = h.save_path();
|
||||
h.move_storage(QDir(save_path).absoluteFilePath(root_folder));
|
||||
}
|
||||
}
|
||||
emit metadataReceived(h);
|
||||
|
|
Loading…
Reference in a new issue