Fix pauseAll/resumeAll legacy API methods

Closes #8766.
This commit is contained in:
Vladimir Golovnev (Glassez) 2018-04-20 08:57:20 +03:00
parent 7aae915a68
commit 001bd38557
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -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";