mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 22:29:23 +00:00
* Replaced the old File with the EntryListNode code, and cleaned it
up. The user now uses File* instead of File. * Changed apply_low_diskspace to use torrent::Download::free_diskspace() instead of the old file path hack. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@809 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -179,9 +179,9 @@ ElementFileList::receive_priority() {
|
||||
if (m_focus >= fl.size())
|
||||
return;
|
||||
|
||||
torrent::File file = fl.get(m_focus);
|
||||
torrent::File* file = fl.get(m_focus);
|
||||
|
||||
file.set_priority(next_priority(file.priority()));
|
||||
file->set_priority(next_priority(file->priority()));
|
||||
|
||||
m_download->download()->update_priorities();
|
||||
m_window->mark_dirty();
|
||||
@@ -197,10 +197,10 @@ ElementFileList::receive_change_all() {
|
||||
if (m_focus >= fl.size())
|
||||
return;
|
||||
|
||||
Priority p = next_priority(fl.get(m_focus).priority());
|
||||
Priority p = next_priority(fl.get(m_focus)->priority());
|
||||
|
||||
for (int i = 0, last = fl.size(); i != last; ++i)
|
||||
fl.get(i).set_priority(p);
|
||||
fl.get(i)->set_priority(p);
|
||||
|
||||
m_download->download()->update_priorities();
|
||||
m_window->mark_dirty();
|
||||
|
||||
Reference in New Issue
Block a user