X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmMain.cs;h=1a1cfae47111132a432eb258c93120890b4f05b5;hb=4f0019f03c2e85e8634150ff0c9a31bee6d35ce5;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..1a1cfae4 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; @@ -1655,7 +1660,6 @@ namespace Handbrake } AudioSettings.SetContainer(drop_format.Text); - Subtitles.SetContainer(drop_format.SelectedIndex); if (drop_format.Text.Contains("MP4")) {