From 20b6579392a60ad75fe279ece489c3f6e44201f4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 1 Oct 2007 19:43:24 +0000 Subject: [PATCH] - BUGFIX: Updated INSTALL file - BUGFIX: Optimized torrent real size calculation --- INSTALL | 4 ++-- TODO | 5 +++-- src/qtorrenthandle.cpp | 12 +----------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/INSTALL b/INSTALL index 0e069d446..8f44209ca 100644 --- a/INSTALL +++ b/INSTALL @@ -1,4 +1,4 @@ -qBittorrent - A BitTorrent client in C++ / Qt4.2 +qBittorrent - A BitTorrent client in C++ / Qt4 ------------------------------------------ *** Necessary if qt3 is default on your system *** @@ -14,7 +14,7 @@ qbittorrent will install and execute qBittorrent hopefully without any problems. Dependencies: -- Qt >= 4.2 (libqt-devel, libqtgui, libqtcore, libqtnetwork, libqtxml) +- Qt >= 4.3.0 (libqt-devel, libqtgui, libqtcore, libqtnetwork, libqtxml) - rblibtorrent by Arvid Norberg (>= v0.13 REQUIRED) -> http://www.qbittorrent.org/download.php (advised) diff --git a/TODO b/TODO index 42e8d9201..467f8a2f9 100644 --- a/TODO +++ b/TODO @@ -55,8 +55,9 @@ - debug new torrent content selection - Recheck doc - Translations update (IN PROGRESS) -- Make use of total_wanted rc3->rc4 changelog: - BUGFIX: Fixed ip filter preferences (couldn't enable it) -- BUGFIX: Fixed a compilation problem on FreeBSD \ No newline at end of file +- BUGFIX: Fixed compilation problems on FreeBSD (Ok now) +- BUGFIX: Updated INSTALL file +- BUGFIX: Optimized torrent real size calculation \ No newline at end of file diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 4a2e4433e..282dec4d7 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -129,17 +129,7 @@ QStringList QTorrentHandle::url_seeds() const { // get the size of the torrent without the filtered files size_type QTorrentHandle::actual_size() const{ Q_ASSERT(h.is_valid()); - size_type size = 0; - std::vector piece_priorities = h.piece_priorities(); - for(unsigned int i = 0; i= 0 && size <= h.get_torrent_info().total_size()); - return size; - // TODO: Wait until this bug is fixed in libtorrent - // http://code.rasterbar.com/libtorrent/ticket/144 - //return h.status().total_wanted; + return h.status().total_wanted; } bool QTorrentHandle::has_filtered_pieces() const {