From 67e4656971e77322caaba271e53790888636b83c Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 26 Jan 2012 18:39:28 +0000 Subject: 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 --- win/CS/frmMain.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'win/CS/frmMain.cs') 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); -- cgit v1.2.3