Browse Source

Fix wrong WebAPI param name

adaptive-webui-19844
Vladimir Golovnev (Glassez) 7 years ago
parent
commit
29042e4841
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 4
      src/webui/api/torrentscontroller.cpp

4
src/webui/api/torrentscontroller.cpp

@ -658,10 +658,10 @@ void TorrentsController::setForceStartAction() @@ -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…
Cancel
Save