diff options
author | sr55 <[email protected]> | 2009-01-07 19:00:57 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-01-07 19:00:57 +0000 |
commit | ed472b95fd36c54aa7b1b4ff97a850def80ac87a (patch) | |
tree | c4a9b143a9f6f3daab9ec6c2189e28aa62d2a043 /win/C#/frmMain.cs | |
parent | 1dd832f211bfd0baddf2fcc1864af12c6324b5ee (diff) |
WinGui:
- Applies http://forum.handbrake.fr/viewtopic.php?f=4&t=8772
- Changes the File Save Dialog box to use the Format dropdown rather than the file extension. Some users seem to have an unusual workflow selecting a format before a file.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2065 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index ff9c69abc..828ff1ef0 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -916,15 +916,15 @@ namespace Handbrake DVD_Save.FileName = DVD_Save.FileName.Replace(".mp4", "").Replace(".m4v", "").Replace(".mkv", "").Replace(".ogm", "").Replace(".avi", "");
// Show the dialog and set the main form file path
- if (text_destination.Text.EndsWith(".mp4"))
+ if (drop_format.SelectedIndex.Equals(0))
DVD_Save.FilterIndex = 1;
- else if (text_destination.Text.EndsWith(".m4v"))
+ else if (drop_format.SelectedIndex.Equals(1))
DVD_Save.FilterIndex = 2;
- else if (text_destination.Text.EndsWith(".avi"))
+ else if (drop_format.SelectedIndex.Equals(2))
DVD_Save.FilterIndex = 3;
- else if (text_destination.Text.EndsWith(".ogm"))
+ else if (drop_format.SelectedIndex.Equals(3))
DVD_Save.FilterIndex = 4;
- else if (text_destination.Text.EndsWith(".mkv"))
+ else if (drop_format.SelectedIndex.Equals(4))
DVD_Save.FilterIndex = 5;
if (DVD_Save.ShowDialog() == DialogResult.OK)
|