summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/PresetLoader.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-30 16:15:01 +0000
committersr55 <[email protected]>2009-08-30 16:15:01 +0000
commit20ff4c1c7f0e888400aecef0c6cf7355abba8ae4 (patch)
tree0cb03b0122cc5f8bc844678e696fb2f6a5c385bd /win/C#/Functions/PresetLoader.cs
parentc1adf4d22a63a6e63b4b0955e67db4f885c58c04 (diff)
WinGui:
- Set use m4v option enabled by default. - Fix some issues with auto setting m4v when use m4v is disabled. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2795 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r--win/C#/Functions/PresetLoader.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs
index fae48ee46..f0ac81c3c 100644
--- a/win/C#/Functions/PresetLoader.cs
+++ b/win/C#/Functions/PresetLoader.cs
@@ -47,9 +47,19 @@ namespace Handbrake.Functions
if (presetQuery.Format != null)
{
if (presetQuery.Format == "mp4" || presetQuery.Format == "m4v")
- mainWindow.drop_format.SelectedIndex = 0;
+ {
+ if (mainWindow.drop_format.SelectedIndex == 0)
+ mainWindow.SetExtension(".mp4");
+ else
+ mainWindow.drop_format.SelectedIndex = 0;
+ }
else if (presetQuery.Format == "mkv")
- mainWindow.drop_format.SelectedIndex = 1;
+ {
+ if(mainWindow.drop_format.SelectedIndex == 1)
+ mainWindow.SetExtension(".mkv");
+ else
+ mainWindow.drop_format.SelectedIndex = 1;
+ }
}
mainWindow.check_iPodAtom.CheckState = presetQuery.IpodAtom ? CheckState.Checked : CheckState.Unchecked;