mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Change parseBool() to return optional bool value
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user