Updated Changelog

Added some debug information
This commit is contained in:
Christophe Dumez
2010-04-23 08:07:25 +00:00
parent 8206ec9012
commit 7e8754baf3
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.2.7
- BUGFIX: Fix unicode problem in torrent moving code
- BUGFIX: Fix possible initialization problem in Web UI
* Sun Apr 18 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.6
- BUGFIX: Announce to all trackers at once
- BUGFIX: Added support for single-thread boost

View File

@@ -1897,12 +1897,15 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
if(appendqBExtension)
appendqBextensionToTorrent(h, false);
#endif
qDebug("A torrent has finished downloading");
// Move to download directory if necessary
if(!defaultTempPath.isEmpty()) {
qDebug("A torrent has finished downloading and will be moved to the final download location");
// Check if directory is different
const QDir current_dir(h.save_path());
const QDir save_dir(getSavePath(hash));
if(current_dir != save_dir) {
qDebug("current dir is different that final destination, actually move the storage...");
h.move_storage(save_dir.path());
}
}
@@ -1964,7 +1967,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
if(h.is_valid()) {
// Attempt to remove old folder if empty
const QString& old_save_path = TorrentPersistentData::getSavePath(h.hash());
const QString new_save_path = QString(p->path.c_str());
const QString new_save_path = QString::fromLocal8Bit(p->path.c_str());
qDebug("Torrent moved from %s to %s", qPrintable(old_save_path), qPrintable(new_save_path));
qDebug("Attempting to remove %s", qPrintable(old_save_path));
QDir().rmpath(old_save_path);