Skip to content

Commit

Permalink
WinGui: Fix an issue where preset save changes was not working.
Browse files Browse the repository at this point in the history
git-svn-id: svn://localhost/HandBrake/trunk@4424 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
sr55 committed Jan 26, 2012
1 parent a6f61d3 commit b52d8dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Expand Up @@ -145,6 +145,7 @@ public void Update(Preset update)
if (preset.Name == update.Name)
{
preset.Query = update.Query;
preset.Task = update.Task;

// Update the presets file
this.UpdatePresetFiles();
Expand Down
9 changes: 5 additions & 4 deletions win/CS/frmMain.cs
Expand Up @@ -546,13 +546,14 @@ private void pmnu_saveChanges_Click(object sender, EventArgs e)
"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);
Expand Down

0 comments on commit b52d8dd

Please sign in to comment.