mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Fix wrong WebAPI param name
This commit is contained in:
parent
3e2cfb5136
commit
29042e4841
@ -658,10 +658,10 @@ void TorrentsController::setForceStartAction()
|
||||
|
||||
void TorrentsController::deleteAction()
|
||||
{
|
||||
checkParams({"hashes", "delete_files"});
|
||||
checkParams({"hashes", "deleteFiles"});
|
||||
|
||||
const QStringList hashes {params()["hashes"].split('|')};
|
||||
const bool deleteFiles {parseBool(params()["delete_files"], false)};
|
||||
const bool deleteFiles {parseBool(params()["deleteFiles"], false)};
|
||||
applyToTorrents(hashes, [deleteFiles](BitTorrent::TorrentHandle *torrent)
|
||||
{
|
||||
BitTorrent::Session::instance()->deleteTorrent(torrent->hash(), deleteFiles);
|
||||
|
Loading…
Reference in New Issue
Block a user