summaryrefslogtreecommitdiffstats
path: root/win/C#/Presets/Import.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Presets/Import.cs')
-rw-r--r--win/C#/Presets/Import.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/C#/Presets/Import.cs b/win/C#/Presets/Import.cs
index 03f192ea1..723cbb1da 100644
--- a/win/C#/Presets/Import.cs
+++ b/win/C#/Presets/Import.cs
@@ -11,6 +11,7 @@ namespace Handbrake.Presets
{
public QueryParser importMacPreset(string filename)
{
+ XmlNode root = null;
try
{
if (!File.Exists(filename))
@@ -25,7 +26,7 @@ namespace Handbrake.Presets
XmlDocument doc = new XmlDocument();
doc.LoadXml(fromfile);
- XmlNode root = doc;
+ root = doc;
if (!root.HasChildNodes)
{
MessageBox.Show(