From: sr55 Date: Mon, 24 May 2010 17:57:27 +0000 (+0000) Subject: WinGui: X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f98875857c4ba813d0c24992523222ad7e252599;p=handbrake-jp%2Fhandbrake-jp-git.git WinGui: - Check Destination Path exists before adding to queue. git-svn-id: svn://localhost/HandBrake/trunk@3322 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 958e1794..94b74005 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(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;