From 0f1c49611923f026b360b87bc945e720eb719990 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 6 Feb 2010 13:34:21 +0000 Subject: [PATCH] (trunk, qt) #2841 "new torrents via .torrent not added in qt client" -- fixed in trunk for 1.90 --- qt/session.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt/session.cc b/qt/session.cc index 590d502b6..b33111c7c 100644 --- a/qt/session.cc +++ b/qt/session.cc @@ -864,7 +864,7 @@ Session :: addTorrent( QString key, QString localPath ) tr_bencDictAddStr( &top, "method", "torrent-add" ); args = tr_bencDictAddDict( &top, "arguments", 3 ); tr_bencDictAddStr( args, "download-dir", qPrintable(localPath) ); - tr_bencDictAddInt( args, "paused", !myPrefs.getBool( Prefs::START ) ); + tr_bencDictAddBool( args, "paused", !myPrefs.getBool( Prefs::START ) ); // if "key" is a readable local file, add it as metadata... // otherwise it's probably a URL or magnet link, so pass it along @@ -879,7 +879,6 @@ Session :: addTorrent( QString key, QString localPath ) char * b64 = tr_base64_encode( raw.constData(), raw.size(), &b64len ); tr_bencDictAddRaw( args, "metainfo", b64, b64len ); tr_free( b64 ); - tr_bencFree( &top ); } else {