mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Add log message
This commit is contained in:
parent
c94a61f434
commit
565f263ecb
1 changed files with 4 additions and 1 deletions
|
@ -48,6 +48,7 @@
|
||||||
#include "transferlistwidget.h"
|
#include "transferlistwidget.h"
|
||||||
#include "base/bittorrent/session.h"
|
#include "base/bittorrent/session.h"
|
||||||
#include "base/bittorrent/torrenthandle.h"
|
#include "base/bittorrent/torrenthandle.h"
|
||||||
|
#include "base/logger.h"
|
||||||
#include "base/torrentfilter.h"
|
#include "base/torrentfilter.h"
|
||||||
#include "transferlistdelegate.h"
|
#include "transferlistdelegate.h"
|
||||||
#include "previewselect.h"
|
#include "previewselect.h"
|
||||||
|
@ -264,8 +265,10 @@ void TransferListWidget::setSelectedTorrentsLocation()
|
||||||
qDebug("New location is %s", qPrintable(newLocation));
|
qDebug("New location is %s", qPrintable(newLocation));
|
||||||
|
|
||||||
// Actually move storage
|
// Actually move storage
|
||||||
foreach (BitTorrent::TorrentHandle *const torrent, torrents)
|
foreach (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()).arg(torrent->savePath()).arg(newLocation));
|
||||||
torrent->move(Utils::Fs::expandPathAbs(newLocation));
|
torrent->move(Utils::Fs::expandPathAbs(newLocation));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::pauseAllTorrents()
|
void TransferListWidget::pauseAllTorrents()
|
||||||
|
|
Loading…
Reference in a new issue