mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 21:22:31 +00:00
Proper '/' on the end of directories in the find-file window.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@381 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -302,6 +302,10 @@ DownloadList::setup_input() {
|
||||
m_windowTextInput = new WInput(p);
|
||||
|
||||
p->slot_dirty(sigc::mem_fun(*m_windowTextInput, &WInput::mark_dirty));
|
||||
|
||||
p->signal_show_next().connect(sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change), DISPLAY_STRING_LIST));
|
||||
p->signal_show_next().connect(sigc::mem_fun(*esl, &ElementStringList::next_screen));
|
||||
|
||||
p->signal_show_range().connect(sigc::hide(sigc::hide(sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change), DISPLAY_STRING_LIST))));
|
||||
p->signal_show_range().connect(sigc::mem_fun(*esl, &ElementStringList::set_range<utils::Directory::iterator>));
|
||||
|
||||
|
||||
@@ -57,4 +57,14 @@ ElementStringList::disable(Control* c) {
|
||||
m_window = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
ElementStringList::next_screen() {
|
||||
if (m_window->get_draw_end() != m_list.end())
|
||||
m_window->set_range(m_window->get_draw_end(), m_list.end());
|
||||
else
|
||||
m_window->set_range(m_list.begin(), m_list.end());
|
||||
|
||||
m_window->mark_dirty();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ public:
|
||||
m_window->mark_dirty();
|
||||
}
|
||||
|
||||
void next_screen();
|
||||
|
||||
private:
|
||||
WStringList* m_window;
|
||||
List m_list;
|
||||
|
||||
Reference in New Issue
Block a user