Saves to a session directory, but does not delete.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@292 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-19 23:25:28 +00:00
parent 5b050b594b
commit 91da0475e4
12 changed files with 147 additions and 99 deletions
+6 -4
View File
@@ -4,6 +4,8 @@
#include <torrent/torrent.h>
#include <sigc++/bind.h>
#include "core/download.h"
#include "input/bindings.h"
#include "input/text_input.h"
@@ -110,7 +112,7 @@ DownloadList::receive_start_download() {
if (m_focus == m_control->get_core().get_download_list().end())
return;
m_control->get_core().start(&*m_focus);
m_control->get_core().start(*m_focus);
}
void
@@ -118,8 +120,8 @@ DownloadList::receive_stop_download() {
if (m_focus == m_control->get_core().get_download_list().end())
return;
if (m_focus->get_download().is_active())
m_control->get_core().stop(&*m_focus);
if ((*m_focus)->get_download().is_active())
m_control->get_core().stop(*m_focus);
else
m_control->get_core().erase(m_focus);
}
@@ -134,7 +136,7 @@ DownloadList::receive_view_download() {
disable();
m_download = new Download(&*m_focus, m_control);
m_download = new Download(*m_focus, m_control);
m_download->activate();
m_download->get_bindings()[KEY_LEFT] = sigc::mem_fun(*this, &DownloadList::receive_exit_download);