Cleaned up configure.ac and fixed it to properly handles CXXFLAGS.

Ignore SIGPIPE.

Fixed(?) bug in hash queue code when a queued torrent got
deleted. Also reorganized core::Manager to catch all
torrent::local_error's.

Fixed display bug in display::FileList which hid the last element.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@441 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-05-26 03:25:55 +00:00
parent 528646cc02
commit a2248f584f
12 changed files with 214 additions and 179 deletions
+5 -6
View File
@@ -42,6 +42,10 @@ WindowFileList::redraw() {
m_nextDraw = utils::Timer::cache().round_seconds() + 10 * 1000000;
m_canvas->erase();
if (m_download->get_download().get_entry_size() == 0 ||
m_canvas->get_height() < 2)
return;
int pos = 0;
m_canvas->print( 2, pos, "File");
@@ -51,18 +55,13 @@ WindowFileList::redraw() {
++pos;
if (m_download->get_download().get_entry_size() == 0)
return;
if (*m_focus >= m_download->get_download().get_entry_size())
throw std::logic_error("WindowFileList::redraw() called on an object with a bad focus value");
typedef std::pair<unsigned int, unsigned int> Range;
Range range = rak::advance_bidirectional<unsigned int>(0,
*m_focus,
m_download->get_download().get_entry_size(),
m_canvas->get_height());
m_canvas->get_height() - pos);
while (range.first != range.second) {
torrent::Entry e = m_download->get_download().get_entry(range.first);
+2
View File
@@ -39,6 +39,8 @@ namespace display {
class WindowFileList : public Window {
public:
typedef std::pair<unsigned int, unsigned int> Range;
WindowFileList(core::Download* d, unsigned int* focus);
virtual void redraw();