mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 21:21:24 -07:00
Change parseBool() to return optional bool value
This commit is contained in:
parent
4429a16ca8
commit
d0cac421bb
6 changed files with 24 additions and 19 deletions
|
@ -89,7 +89,7 @@ void RSSController::moveItemAction()
|
|||
|
||||
void RSSController::itemsAction()
|
||||
{
|
||||
const bool withData {parseBool(params()["withData"], false)};
|
||||
const bool withData {parseBool(params()["withData"]).value_or(false)};
|
||||
|
||||
const auto jsonVal = RSS::Session::instance()->rootFolder()->toJsonValue(withData);
|
||||
setResult(jsonVal.toObject());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue