summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs1
-rw-r--r--win/CS/frmMain.cs9
2 files changed, 6 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
index 5672838e8..55b8e9e25 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
@@ -145,6 +145,7 @@ namespace HandBrake.ApplicationServices.Services
if (preset.Name == update.Name)
{
preset.Query = update.Query;
+ preset.Task = update.Task;
// Update the presets file
this.UpdatePresetFiles();
diff --git a/win/CS/frmMain.cs b/win/CS/frmMain.cs
index a3e867997..cc2445367 100644
--- a/win/CS/frmMain.cs
+++ b/win/CS/frmMain.cs
@@ -546,13 +546,14 @@ namespace Handbrake
"Do you wish to include picture settings when updating the preset: " +
treeView_presets.SelectedNode.Text, "Update Preset", MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question);
-
+ string query = QueryGenerator.GenerateQueryForPreset(
+ this, QueryPictureSettingsMode.SourceMaximum, true, 0, 0);
Preset preset = new Preset
{
Name = this.treeView_presets.SelectedNode.Text,
- Query =
- QueryGenerator.GenerateQueryForPreset(this, QueryPictureSettingsMode.SourceMaximum, true, 0, 0),
- CropSettings = (result == DialogResult.Yes)
+ Query = query,
+ CropSettings = (result == DialogResult.Yes),
+ Task = QueryParserUtility.Parse(query),
};
presetHandler.Update(preset);