mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* Added "working_directory" option that calls chdir.
* Added "session_on_completion" option which saves the session torrent when a download finishes. * Handle SIGTERM gracefully, saving session torrents etc. * Implemented session directory lockfile, use "session_lock" option to disable. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@629 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -73,11 +73,11 @@ DownloadList::DownloadList(Control* c) :
|
||||
m_window(c->display()->end()),
|
||||
|
||||
m_windowTitle(new WTitle("rTorrent " VERSION " - libTorrent " + std::string(torrent::version()))),
|
||||
m_windowHttpQueue(new WHttp(&c->core()->get_http_queue())),
|
||||
m_windowHttpQueue(new WHttp(&c->core()->http_queue())),
|
||||
|
||||
m_uiDownload(NULL),
|
||||
|
||||
m_downloadList(&c->core()->get_download_list()),
|
||||
m_downloadList(&c->core()->download_list()),
|
||||
|
||||
m_control(c),
|
||||
m_bindings(new input::Bindings)
|
||||
@@ -124,7 +124,7 @@ DownloadList::activate() {
|
||||
|
||||
m_control->input()->push_front(m_bindings);
|
||||
|
||||
m_control->core()->get_download_list().slot_map_erase().insert("0_download_list", sigc::mem_fun(this, &DownloadList::receive_download_erased));
|
||||
m_control->core()->download_list().slot_map_erase().insert("0_download_list", sigc::mem_fun(this, &DownloadList::receive_download_erased));
|
||||
|
||||
activate_display(DISPLAY_DOWNLOAD_LIST);
|
||||
}
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ Root::setup_keys() {
|
||||
|
||||
//m_bindings[KEY_RESIZE] = sigc::mem_fun(*m_control->display(), &display::Manager::adjust_layout);
|
||||
m_bindings['\x0C'] = sigc::mem_fun(m_control->display(), &display::Manager::force_redraw);
|
||||
m_bindings['\x11'] = sigc::mem_fun(m_control, &Control::receive_shutdown);
|
||||
m_bindings['\x11'] = sigc::mem_fun(m_control, &Control::receive_normal_shutdown);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user