Made log complete an element.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@360 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-17 23:16:43 +00:00
parent 73fb55ae42
commit 2eb534e423
11 changed files with 350 additions and 112 deletions
+6 -6
View File
@@ -24,7 +24,7 @@
#include <stdexcept>
#include "display/window_peer_list.h"
#include "display/window_download_list.h"
#include "control.h"
#include "element_download_list.h"
@@ -43,9 +43,9 @@ ElementDownloadList::activate(Control* c, MItr mItr) {
if (m_window != NULL)
throw std::logic_error("ui::ElementDownloadList::activate(...) called on an object in the wrong state");
// c->get_input().push_front(&m_bindings);
c->get_input().push_front(&m_bindings);
// *mItr = m_window = new WDownloadList(m_download, m_list, m_focus);
*mItr = m_window = new WDownloadList(m_list, m_focus);
}
void
@@ -53,10 +53,10 @@ ElementDownloadList::disable(Control* c) {
if (m_window == NULL)
throw std::logic_error("ui::ElementDownloadList::disable(...) called on an object in the wrong state");
// c->get_input().erase(&m_bindings);
c->get_input().erase(&m_bindings);
// delete m_window;
// m_window = NULL;
delete m_window;
m_window = NULL;
}
}