Add log message

This commit is contained in:
Chocobo1 2017-03-30 10:06:09 +08:00 committed by sledgehammer999
parent c94a61f434
commit 565f263ecb
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -48,6 +48,7 @@
#include "transferlistwidget.h"
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h"
#include "base/logger.h"
#include "base/torrentfilter.h"
#include "transferlistdelegate.h"
#include "previewselect.h"
@ -264,8 +265,10 @@ void TransferListWidget::setSelectedTorrentsLocation()
qDebug("New location is %s", qPrintable(newLocation));
// 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));
}
}
void TransferListWidget::pauseAllTorrents()