X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmMain.cs;h=91e39706f6980fb2b893955de7687a0262ebcb81;hb=55b0015a8c50106e553bc2f48336cc2a1c495459;hp=94b7400596bdefdc2ed0a9f054568794371d3a69;hpb=f98875857c4ba813d0c24992523222ad7e252599;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 94b74005..91e39706 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1133,7 +1133,7 @@ namespace Handbrake MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); else { - if (!Directory.Exists(text_destination.Text)) + if (!Directory.Exists(Path.GetDirectoryName(text_destination.Text))) { MessageBox.Show("Destination Path does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; @@ -1377,7 +1377,10 @@ namespace Handbrake { drop_angle.Visible = true; lbl_angle.Visible = true; - drop_angle.Items.AddRange(selectedTitle.Angles.ToArray()); + + for (int i = 1; i <= selectedTitle.AngleCount; i++) + drop_angle.Items.Add(i.ToString()); + if (drop_angle.Items.Count != 0) drop_angle.SelectedIndex = 0; } @@ -1660,7 +1663,6 @@ namespace Handbrake } AudioSettings.SetContainer(drop_format.Text); - Subtitles.SetContainer(drop_format.SelectedIndex); if (drop_format.Text.Contains("MP4")) {