summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-11-06 22:44:27 +0000
committersr55 <[email protected]>2008-11-06 22:44:27 +0000
commit1a0740cc1cf84f5a6ac3375bc5a5c6a78c912745 (patch)
tree0ed2c557fea5fcea15d2ff5d4a6feb4027e3cbc4
parentb944434095075cdd410b7515992b8d730b394d6f (diff)
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
-rw-r--r--win/C#/frmMain.cs9
1 files 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