Added Json encode support for QVariantList and QStringList

This commit is contained in:
Christophe Dumez 2010-02-28 17:24:35 +00:00
parent b7edfea4ce
commit 8f28804f8c
2 changed files with 30 additions and 23 deletions

View file

@ -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();