summaryrefslogtreecommitdiffstats
path: root/win/CS/frmMain.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/frmMain.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/frmMain.cs')
-rw-r--r--win/CS/frmMain.cs9
1 files changed, 5 insertions, 4 deletions
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);