From 2e07e911e4d261a457821d12d62cb66c55498499 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 13 Aug 2011 11:22:28 +0300 Subject: [PATCH] Fix "Copy torrents to" setting saving in Web UI --- src/webui/html/preferences_content.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webui/html/preferences_content.html b/src/webui/html/preferences_content.html index 25fe80215..24cf37c07 100644 --- a/src/webui/html/preferences_content.html +++ b/src/webui/html/preferences_content.html @@ -894,8 +894,10 @@ applyPreferences = function() { settings.set('scan_dirs', watched_folders[0]); settings.set('download_in_scan_dirs', watched_folders[1]); - settings.set('exportdir_enabled', $('exportdir_checkbox').getProperty('checked')); - settings.set('exportdir_path', $('exportdir_text').getProperty('value')); + if($('exportdir_checkbox').getProperty('checked')) + settings.set('export_dir', $('exportdir_text').getProperty('value')); + else + settings.set('export_dir', ''); settings.set('preallocate_all', $('preallocateall_checkbox').getProperty('checked')); if(!$('appendexttr').hasClass('invisible')) { settings.set('incomplete_files_ext', $('appendext_checkbox').getProperty('checked'));