From 29042e4841c4c1f6f5e34f22b7f0e266a56f31de Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sun, 18 Feb 2018 19:54:08 +0300 Subject: [PATCH] Fix wrong WebAPI param name --- src/webui/api/torrentscontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 2667f39a7..0072c68e4 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -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);