From 407c3844943147b036e91fa1248cf8bd8cba66b1 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 30 Oct 2009 15:03:31 +0000 Subject: [PATCH] BUGFIX: Fix trackers addition to torrents (bug introduced in v1.5.4) --- Changelog | 1 + src/qtorrenthandle.cpp | 4 ++-- src/qtorrenthandle.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index 4fde5ff77..dc63521ab 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Unreleased - Christophe Dumez - v1.5.5 - BUGFIX: Fixed man page - BUGFIX: Fix crash on torrent addition (if libtorrent-rasterbar has debug enabled) + - BUGFIX: Fix trackers addition to torrents (bug introduced in v1.5.4) * Sun Oct 25 2009 - Christophe Dumez - v1.5.4 - BUGFIX: Updated man page diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 2e4316a83..e4782061c 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -234,9 +234,9 @@ size_type QTorrentHandle::filesize_at(unsigned int index) const { return h.get_torrent_info().file_at(index).size; } -std::vector const& QTorrentHandle::trackers() const { +std::vector QTorrentHandle::trackers() const { Q_ASSERT(h.is_valid()); - return h.get_torrent_info().trackers(); + return h.trackers(); } torrent_status::state_t QTorrentHandle::state() const { diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index 4e2928ab0..7e06d190e 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -93,7 +93,7 @@ class QTorrentHandle { bool is_queued() const; QString file_at(unsigned int index) const; size_type filesize_at(unsigned int index) const; - std::vector const& trackers() const; + std::vector trackers() const; torrent_status::state_t state() const; QString creator() const; QString comment() const;