summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-01-26 18:39:28 +0000
committersr55 <[email protected]>2012-01-26 18:39:28 +0000
commit67e4656971e77322caaba271e53790888636b83c (patch)
treec82bb3795f0c84cb5a08497785517e7085004d99 /win/CS
parentd727d40b8c0d982a5275627aee84782dccf5a3b7 (diff)
WinGui: Fix an issue where preset save changes was not working.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4424 b64f7644-9d1e-0410-96f1-a4d463321fa5
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);