mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-21 16:46:18 +00:00
* ^X now passes the selected download to the command.
* Added support for writing Objects to generic char* buffers. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@927 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -102,7 +102,7 @@ CommandMap::call_command_d(key_type key, core::Download* download, const mapped_
|
|||||||
if (itr == base_type::end())
|
if (itr == base_type::end())
|
||||||
throw torrent::input_error("Command \"" + std::string(key) + "\" does not exist.");
|
throw torrent::input_error("Command \"" + std::string(key) + "\" does not exist.");
|
||||||
|
|
||||||
if (itr->second.m_downloadSlot == NULL) {
|
if (itr->second.m_downloadSlot == NULL || download == NULL) {
|
||||||
if (itr->second.m_genericSlot == NULL)
|
if (itr->second.m_genericSlot == NULL)
|
||||||
throw torrent::input_error("Command does not have a generic slot.");
|
throw torrent::input_error("Command does not have a generic slot.");
|
||||||
|
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ DownloadList::receive_exit_input(Input type) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case INPUT_COMMAND:
|
case INPUT_COMMAND:
|
||||||
rpc::parse_command_single_std(input->str());
|
rpc::parse_command_d_single_std(current_view()->focus() != current_view()->end_visible() ? *current_view()->focus() : NULL, input->str());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user