mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -07:00
Improve "move torrent storage" handling
This commit is contained in:
parent
3cf8626317
commit
cdc2b8d79b
5 changed files with 67 additions and 40 deletions
|
@ -332,13 +332,8 @@ void TransferListWidget::setSelectedTorrentsLocation()
|
|||
if (newLocation.isEmpty() || !QDir(newLocation).exists()) return;
|
||||
|
||||
// Actually move storage
|
||||
for (BitTorrent::TorrentHandle *const torrent : torrents) {
|
||||
Logger::instance()->addMessage(tr("Set location: moving \"%1\", from \"%2\" to \"%3\""
|
||||
, "Set location: moving \"ubuntu_16_04.iso\", from \"/home/dir1\" to \"/home/dir2\"")
|
||||
.arg(torrent->name(), Utils::Fs::toNativePath(torrent->savePath())
|
||||
, Utils::Fs::toNativePath(newLocation)));
|
||||
for (BitTorrent::TorrentHandle *const torrent : torrents)
|
||||
torrent->move(Utils::Fs::expandPathAbs(newLocation));
|
||||
}
|
||||
}
|
||||
|
||||
void TransferListWidget::pauseAllTorrents()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue