mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 13:16:17 +00:00
* Moved the resume code out of DownloadWrapper and made it use the
public API. The client can now use the various calls provided or implement its own. * 'U' now deletes the tied file in addition to clearing 'tied_to_file. * Bound left arrow in chunks seen to return to peer list. Patch by Josef Drexler. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@734 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -301,8 +301,11 @@ DownloadList::receive_clear_tied() {
|
||||
if (m_view->focus() == m_view->end_visible())
|
||||
return;
|
||||
|
||||
if (!(*m_view->focus())->variable()->get_string("tied_to_file").empty()) {
|
||||
(*m_view->focus())->variable()->set("tied_to_file", std::string());
|
||||
const std::string& tiedFile = (*m_view->focus())->variable()->get_string("tied_to_file");
|
||||
|
||||
if (!tiedFile.empty()) {
|
||||
// Move this into core?
|
||||
m_control->core()->delete_tied(*m_view->focus());
|
||||
|
||||
m_control->core()->push_log("Cleared tied to file association for download.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user