From e4bf116ce8bc671e4e3aff91cd45d2c425a135a2 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 9 Feb 2010 21:35:20 +0000 Subject: [PATCH] - Fix a crash when adding an already existing torrent --- src/bittorrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 9f614c2a6..f8f0de6c1 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -982,7 +982,7 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr // and add them QTorrentHandle h_ex = getTorrentHandle(hash); if(h_ex.is_valid()) { - std::vector old_trackers = h.trackers(); + std::vector old_trackers = h_ex.trackers(); std::vector new_trackers = t->trackers(); bool trackers_added = false; for(std::vector::iterator it=new_trackers.begin();it!=new_trackers.end();it++) {