* New Tracker API.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1002 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-11-02 10:47:12 +00:00
parent c326c7f43a
commit 4a2ae4d339
7 changed files with 32 additions and 36 deletions
+5 -5
View File
@@ -103,12 +103,12 @@ ElementTrackerList::receive_disable() {
if (m_window == NULL)
throw torrent::internal_error("ui::ElementTrackerList::receive_disable(...) called on a disabled object");
torrent::Tracker t = m_download->download()->tracker_list().get(m_focus);
torrent::Tracker* t = m_download->download()->tracker_list().get(m_focus);
if (t.is_enabled())
t.disable();
if (t->is_enabled())
t->disable();
else
t.enable();
t->enable();
m_window->mark_dirty();
}
@@ -150,7 +150,7 @@ ElementTrackerList::receive_cycle_group() {
if (m_focus >= tl.size())
throw torrent::internal_error("ui::ElementTrackerList::receive_group_cycle(...) called with an invalid focus");
tl.cycle_group(tl.get(m_focus).group());
tl.cycle_group(tl.get(m_focus)->group());
m_window->mark_dirty();
}