diff options
author | sr55 <[email protected]> | 2010-05-24 17:57:27 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-05-24 17:57:27 +0000 |
commit | eef8301f8f1c858961395ea8f1a9e6a58400e36d (patch) | |
tree | 04007a70d113185a4056b37731a8b8533ba2560b | |
parent | 54fb96a58c9f580342d1c66f5039ba9b1bdbb559 (diff) |
WinGui:
- Check Destination Path exists before adding to queue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3322 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/frmMain.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 958e1794d..94b740059 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;
|