mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 23:29:21 +00:00
* Added 'view_filter_on' option that triggers filtering of a download
after an event. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@685 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -78,15 +78,15 @@ WindowDownloadList::redraw() {
|
||||
|
||||
typedef std::pair<core::View::iterator, core::View::iterator> Range;
|
||||
|
||||
Range range = rak::advance_bidirectional(m_view->begin(),
|
||||
m_view->focus() != m_view->end() ? m_view->focus() : m_view->begin(),
|
||||
m_view->end(),
|
||||
Range range = rak::advance_bidirectional(m_view->begin_visible(),
|
||||
m_view->focus() != m_view->end_visible() ? m_view->focus() : m_view->begin_visible(),
|
||||
m_view->end_visible(),
|
||||
m_canvas->get_height() / 3);
|
||||
|
||||
// Make sure we properly fill out the last lines so it looks like
|
||||
// there are more torrents, yet don't hide it if we got the last one
|
||||
// in focus.
|
||||
if (range.second != m_view->end())
|
||||
if (range.second != m_view->end_visible())
|
||||
++range.second;
|
||||
|
||||
int pos = 1;
|
||||
|
||||
Reference in New Issue
Block a user