X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmMain.cs;h=91e39706f6980fb2b893955de7687a0262ebcb81;hb=55b0015a8c50106e553bc2f48336cc2a1c495459;hp=958e1794d8d64c02bf81b76c645e85ab7171302f;hpb=a7bf79a218e01bafd34311a22612b89af8e90fcf;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 958e1794..91e39706 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1130,10 +1130,15 @@ namespace Handbrake private void btn_add2Queue_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(sourcePath) || string.IsNullOrEmpty(text_destination.Text)) - MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, - MessageBoxIcon.Warning); + MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); else { + if (!Directory.Exists(Path.GetDirectoryName(text_destination.Text))) + { + MessageBox.Show("Destination Path does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + string query = QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null); if (rtf_query.Text != string.Empty) query = rtf_query.Text; @@ -1372,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; } @@ -1655,7 +1663,6 @@ namespace Handbrake } AudioSettings.SetContainer(drop_format.Text); - Subtitles.SetContainer(drop_format.SelectedIndex); if (drop_format.Text.Contains("MP4")) {