From bd292076e3122e16fbf1004f0bbbd535d233f367 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 13 Mar 2010 13:45:10 +0000 Subject: [PATCH] Another Qt 4.6 fix --- src/bittorrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 4ebb133c2..8086b02c7 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1950,8 +1950,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { if(appendqBExtension) { QString name = misc::toQString(h.get_torrent_info().file_at(p->index).path.string()); if(name.endsWith(".!qB")) { + const QString old_name = name; name.chop(4); - qDebug("Renaming %s to %s", qPrintable(name+".!qB"), qPrintable(name)); + qDebug("Renaming %s to %s", qPrintable(old_name), qPrintable(name)); h.rename_file(p->index, name); } }