Browse Source

Merge pull request #8767 from glassez/fix-legacy-api

Fix pauseAll/resumeAll legacy API methods. Closes #8766
adaptive-webui-19844
Vladimir Golovnev 7 years ago committed by GitHub
parent
commit
b155b8609f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/webui/webapplication.cpp

6
src/webui/webapplication.cpp

@ -336,7 +336,11 @@ void WebApplication::doProcessRequest() @@ -336,7 +336,11 @@ void WebApplication::doProcessRequest()
scope = compatInfo.scope;
action = compatInfo.action;
if (legacyAction == QLatin1String("command/delete"))
if (legacyAction == QLatin1String("command/pauseAll"))
m_params["hashes"] = "all";
else if (legacyAction == QLatin1String("command/resumeAll"))
m_params["hashes"] = "all";
else if (legacyAction == QLatin1String("command/delete"))
m_params["deleteFiles"] = "false";
else if (legacyAction == QLatin1String("command/deletePerm"))
m_params["deleteFiles"] = "true";

Loading…
Cancel
Save