summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/C#/frmMain.Designer.cs2
-rw-r--r--win/C#/frmMain.cs10
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)