mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebAPI: fix wrong key used for categories
Regression from 1c0f8b4289.
Closes #15969.
PR #15988.
This commit is contained in:
@@ -503,6 +503,8 @@ void SyncController::maindataAction()
|
||||
{
|
||||
const BitTorrent::CategoryOptions categoryOptions = session->categoryOptions(categoryName);
|
||||
QJsonObject category = categoryOptions.toJSON();
|
||||
// adjust it to be compatible with exisitng WebAPI
|
||||
category[QLatin1String("savePath")] = category.take(QLatin1String("save_path"));
|
||||
category.insert(QLatin1String("name"), categoryName);
|
||||
categories[categoryName] = category.toVariantMap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user