From c836a955f7248d35808c0f5e00a72e40d86c1f46 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 2 Apr 2009 15:21:45 +0000 Subject: WinGui: - Confirm file overwrite for encode destination. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2296 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmMain.Designer.cs | 1 + win/C#/frmMain.cs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'win') diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index 455cf4880..c14091dae 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -270,6 +270,7 @@ namespace Handbrake // // DVD_Save // + this.DVD_Save.CheckFileExists = true; this.DVD_Save.Filter = "mp4|*.mp4|m4v|*.m4v|mkv|*.mkv|avi|*.avi|ogm|*.ogm"; this.DVD_Save.SupportMultiDottedExtensions = true; // diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index bdce184de..fc6f98cfd 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -643,7 +643,8 @@ namespace Handbrake if (result == DialogResult.Yes) encodeQueue.add(query, text_source.Text, text_destination.Text); - } else + } + else encodeQueue.add(query, text_source.Text, text_destination.Text); encodeQueue.write2disk("hb_queue_recovery.xml"); // Writes the queue to the recovery file, just incase the GUI crashes. @@ -863,7 +864,7 @@ namespace Handbrake if (autoPath != null) text_destination.Text = autoPath; else - MessageBox.Show("You currently have automatic file naming enabled for the destination box, but you do not have a default direcotry set. You should set this in the program options (see Tools Menu)","Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show("You currently have automatic file naming enabled for the destination box, but you do not have a default direcotry set. You should set this in the program options (see Tools Menu)", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } data_chpt.Rows.Clear(); @@ -2120,7 +2121,7 @@ namespace Handbrake protected override void OnFormClosing(FormClosingEventArgs e) { // If currently encoding, the queue isn't paused, and there are queue items to process, prompt to confirm close. - if ((encodeQueue.isEncoding) && (! encodeQueue.isPaused) && (encodeQueue.count() > 0)) + if ((encodeQueue.isEncoding) && (!encodeQueue.isPaused) && (encodeQueue.count() > 0)) { DialogResult result = MessageBox.Show("HandBrake has queue items to process. Closing HandBrake will not stop the current encoding, but will stop processing the queue.\n\nDo you want to close HandBrake?", "Close HandBrake?", MessageBoxButtons.YesNo, MessageBoxIcon.Question); -- cgit v1.2.3