summaryrefslogtreecommitdiffstats
path: root/win/C#/Presets
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-01-09 22:49:50 +0000
committersr55 <[email protected]>2010-01-09 22:49:50 +0000
commit52413428ae29b701202853b602ae073928e5b5ab (patch)
tree51e392bae42764d4a6558c71b1659f77d6afdba9 /win/C#/Presets
parent33b1c3f11e430dc483a8d3f2af5efb2b3f93d989 (diff)
WinGui:
- If crop values are stored in the preset and the user has decided to enable them in the preset, the gui will not longer reset the crop panel on title change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3062 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Presets')
-rw-r--r--win/C#/Presets/PresetsHandler.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/C#/Presets/PresetsHandler.cs b/win/C#/Presets/PresetsHandler.cs
index 05c0243ab..a26538b73 100644
--- a/win/C#/Presets/PresetsHandler.cs
+++ b/win/C#/Presets/PresetsHandler.cs
@@ -167,13 +167,17 @@ namespace Handbrake.Presets
Regex r = new Regex("(: )"); // Split on hyphens.
string[] presetName = r.Split(line);
+ bool pic = false;
+ if (presetName[2].Contains("crop"))
+ pic = true;
+
Preset newPreset = new Preset
{
Category = category,
Name = presetName[0].Replace("+", "").Trim(),
Query = presetName[2],
Version = Properties.Settings.Default.hb_version,
- PictureSettings = true
+ PictureSettings = pic
};
_presets.Add(newPreset);
}