mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-11 08:39:21 +00:00
* ChunkSelector selected from outside the priority ranges due to
~(char)0 giving an inverted integer rather than char. * Fixed a segfault due to too small screen size, snprintf returns the number of bytes that could have been written rather than how much actually was. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@626 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -234,6 +234,11 @@ Download::receive_next_priority() {
|
||||
m_download->set_priority((m_download->priority() + 1) % 4);
|
||||
}
|
||||
|
||||
void
|
||||
Download::receive_prev_priority() {
|
||||
m_download->set_priority((m_download->priority() - 1) % 4);
|
||||
}
|
||||
|
||||
void
|
||||
Download::bind_keys() {
|
||||
(*m_bindings)['1'] = sigc::bind(sigc::mem_fun(*this, &Download::receive_max_uploads), -1);
|
||||
@@ -243,6 +248,7 @@ Download::bind_keys() {
|
||||
(*m_bindings)['5'] = sigc::bind(sigc::mem_fun(*this, &Download::receive_max_peers), -5);
|
||||
(*m_bindings)['6'] = sigc::bind(sigc::mem_fun(*this, &Download::receive_max_peers), 5);
|
||||
(*m_bindings)['+'] = sigc::mem_fun(*this, &Download::receive_next_priority);
|
||||
(*m_bindings)['-'] = sigc::mem_fun(*this, &Download::receive_prev_priority);
|
||||
|
||||
(*m_bindings)['t'] = sigc::bind(sigc::mem_fun(m_download->get_download(), &torrent::Download::tracker_manual_request), false);
|
||||
(*m_bindings)['T'] = sigc::bind(sigc::mem_fun(m_download->get_download(), &torrent::Download::tracker_manual_request), true);
|
||||
|
||||
Reference in New Issue
Block a user