From 1a0740cc1cf84f5a6ac3375bc5a5c6a78c912745 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 6 Nov 2008 22:44:27 +0000 Subject: WinGui: - Fix Normal preset not getting loaded if user didn't have default settings set. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1900 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmMain.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 2888dad41..0aff287cf 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1553,10 +1553,15 @@ namespace Handbrake #region Functions private void loadNormalPreset() { + treeView_presets.Nodes.Find("Normal", true); + foreach (TreeNode treenode in treeView_presets.Nodes) { - if (treenode.Text.ToString().Equals("Normal")) - treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index]; + foreach (TreeNode node in treenode.Nodes) + { + if (node.Text.ToString().Equals("Normal")) + treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index].Nodes[0]; + } } } #endregion -- cgit v1.2.3