mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Fixed an overflow in rak::partial_queue, and added some exceptions.
* Changed to configure script so --disable-mincore must be called explicitly to disable it. * API and core::Download cleanup. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@660 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -84,7 +84,7 @@ ElementFileList::receive_next() {
|
||||
if (m_window == NULL)
|
||||
throw torrent::internal_error("ui::ElementFileList::receive_next(...) called on a disabled object");
|
||||
|
||||
if (++m_focus >= m_download->get_download().file_list().size())
|
||||
if (++m_focus >= m_download->download()->file_list().size())
|
||||
m_focus = 0;
|
||||
|
||||
m_window->mark_dirty();
|
||||
@@ -95,7 +95,7 @@ ElementFileList::receive_prev() {
|
||||
if (m_window == NULL)
|
||||
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
|
||||
|
||||
torrent::FileList fl = m_download->get_download().file_list();
|
||||
torrent::FileList fl = m_download->download()->file_list();
|
||||
|
||||
if (fl.size() == 0)
|
||||
return;
|
||||
@@ -113,7 +113,7 @@ ElementFileList::receive_priority() {
|
||||
if (m_window == NULL)
|
||||
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
|
||||
|
||||
torrent::FileList fl = m_download->get_download().file_list();
|
||||
torrent::FileList fl = m_download->download()->file_list();
|
||||
|
||||
if (m_focus >= fl.size())
|
||||
return;
|
||||
@@ -122,7 +122,7 @@ ElementFileList::receive_priority() {
|
||||
|
||||
file.set_priority(next_priority(file.priority()));
|
||||
|
||||
m_download->get_download().update_priorities();
|
||||
m_download->download()->update_priorities();
|
||||
m_window->mark_dirty();
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ ElementFileList::receive_change_all() {
|
||||
if (m_window == NULL)
|
||||
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
|
||||
|
||||
torrent::FileList fl = m_download->get_download().file_list();
|
||||
torrent::FileList fl = m_download->download()->file_list();
|
||||
|
||||
if (m_focus >= fl.size())
|
||||
return;
|
||||
@@ -141,7 +141,7 @@ ElementFileList::receive_change_all() {
|
||||
for (int i = 0, last = fl.size(); i != last; ++i)
|
||||
fl.get(i).set_priority(p);
|
||||
|
||||
m_download->get_download().update_priorities();
|
||||
m_download->download()->update_priorities();
|
||||
m_window->mark_dirty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user