From 99a58b920800d3ecd92e970688930c6afb2f9238 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 31 Jul 2007 09:17:59 +0000 Subject: [PATCH] - Removed a useless function - Stop resfreshing trackers errors in torrent properties because this is annoying when you're trying to read them --- src/bittorrent.cpp | 16 ++-------------- src/bittorrent.h | 1 - src/properties_imp.cpp | 1 - 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index f6dd23067..db9b2c3ca 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -771,7 +771,8 @@ void bittorrent::setUploadRateLimit(int rate){ // This function will apply to same ratio to all torrents void bittorrent::setGlobalRatio(float ratio){ std::vector handles = s->get_torrents(); - for(unsigned int i=0; i bittorrent::getTorrentHandles() const{ return s->get_torrents(); } -// Return a vector with all finished torrent handles in it -QList bittorrent::getFinishedTorrentHandles() const{ - QList finished; - std::vector handles; - for(unsigned int i=0; i getFinishedTorrentHandles() const; session_status getSessionStatus() const; int getListenPort() const; QStringList getTorrentsToPauseAfterChecking() const; diff --git a/src/properties_imp.cpp b/src/properties_imp.cpp index 75cad02e7..abe9876b8 100644 --- a/src/properties_imp.cpp +++ b/src/properties_imp.cpp @@ -466,7 +466,6 @@ void properties::updateInfos(){ // torrent was removed, closing properties close(); } - loadTrackersErrors(); // Update current tracker torrent_status torrentStatus = h.status(); QString tracker = QString(torrentStatus.current_tracker.c_str()).trimmed();