From fab58296af15fe68c7621dc40746037dc7b58c40 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 22 Dec 2009 15:37:48 +0000 Subject: [PATCH] - Fix exception in tracker list when torrent has no metadata. The exeption was caught anyway but the trackers were not displayed --- src/trackerlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trackerlist.h b/src/trackerlist.h index 40c662912..985e6810d 100644 --- a/src/trackerlist.h +++ b/src/trackerlist.h @@ -142,13 +142,13 @@ public slots: ++nb_pex; } // load DHT information - if(properties->getBTSession()->isDHTEnabled() && !h.priv()) { + if(properties->getBTSession()->isDHTEnabled() && h.has_metadata() && !h.priv()) { dht_item->setText(COL_STATUS, tr("Working")); } else { dht_item->setText(COL_STATUS, tr("Disabled")); } dht_item->setText(COL_PEERS, QString::number(nb_dht)); - if(h.priv()) { + if(h.has_metadata() && h.priv()) { dht_item->setText(COL_MSG, tr("This torrent is private")); } // Load PeX Information