mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Added Json encode support for QVariantList and QStringList
This commit is contained in:
parent
b7edfea4ce
commit
8f28804f8c
2 changed files with 30 additions and 23 deletions
|
@ -231,9 +231,8 @@ QVariantMap EventManager::getGlobalPreferences() const {
|
|||
data["save_path"] = Preferences::getSavePath();
|
||||
data["temp_path_enabled"] = Preferences::isTempPathEnabled();
|
||||
data["temp_path"] = Preferences::getTempPath();
|
||||
// XXX: json.h does not encode QStringList correctly
|
||||
//data["scan_dirs"] = Preferences::getScanDirs();
|
||||
//data["download_in_scan_dirs"] = Preferences::getDownloadInScanDirs();
|
||||
data["scan_dirs"] = Preferences::getScanDirs();
|
||||
data["download_in_scan_dirs"] = Preferences::getDownloadInScanDirs();
|
||||
data["export_dir_enabled"] = Preferences::isTorrentExportEnabled();
|
||||
data["export_dir"] = Preferences::getExportDir();
|
||||
data["preallocate_all"] = Preferences::preAllocateAllFiles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue