mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
* New Tracker API.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1002 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user