From ed472b95fd36c54aa7b1b4ff97a850def80ac87a Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 7 Jan 2009 19:00:57 +0000 Subject: [PATCH] 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 --- win/C#/frmMain.Designer.cs | 2 +- win/C#/frmMain.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index d814262d4..df944cefc 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -312,7 +312,7 @@ namespace Handbrake // // DVD_Save // - this.DVD_Save.Filter = "mp4|*.mp4|m4v|*.m4v|avi|*.avi|ogm|*.ogm|mkv|*.mkv"; + this.DVD_Save.Filter = "mp4|*.mp4|m4v|*.m4v|mkv|*.mkv|avi|*.avi|ogm|*.ogm"; this.DVD_Save.SupportMultiDottedExtensions = true; // // File_Save 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) -- 2.40.0