]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Thu, 6 Nov 2008 22:44:27 +0000 (22:44 +0000)
committersr55 <sr55.hb@outlook.com>
Thu, 6 Nov 2008 22:44:27 +0000 (22:44 +0000)
- 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

index 2888dad413af246309876db70b982a10f4b8b7f9..0aff287cf5c85d88ae4456384df38872b916ce6c 100644 (file)
@@ -1553,10 +1553,15 @@ namespace Handbrake
         #region Functions\r
         private void loadNormalPreset()\r
         {\r
+            treeView_presets.Nodes.Find("Normal", true);\r
+\r
             foreach (TreeNode treenode in treeView_presets.Nodes)\r
             {\r
-                if (treenode.Text.ToString().Equals("Normal"))\r
-                    treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index];\r
+                foreach (TreeNode node in treenode.Nodes)\r
+                {\r
+                    if (node.Text.ToString().Equals("Normal"))\r
+                       treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index].Nodes[0];\r
+                }\r
             }\r
         }\r
         #endregion\r