From 5a88c1ad46a8e13412e0abb472ea3bee2d4ece4c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 19 Nov 2009 12:54:53 +0000 Subject: [PATCH] - Fix double fix in tracker list when switching torrent --- src/trackerlist.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/trackerlist.h b/src/trackerlist.h index d0cf9a035..9adae4b87 100644 --- a/src/trackerlist.h +++ b/src/trackerlist.h @@ -77,6 +77,11 @@ public: public slots: + void clear() { + qDeleteAll(tracker_items.values()); + tracker_items.clear(); + } + void loadTrackers() { QStringList old_trackers_urls = tracker_items.keys(); // Load trackers from torrent handle