summaryrefslogtreecommitdiffstats
path: root/win/C#/frmOptions.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-09-18 15:31:06 +0000
committersr55 <[email protected]>2010-09-18 15:31:06 +0000
commit7feb31c259d144751ad6003b0544715349c359b0 (patch)
tree5eca8a7cd11e2ebe855014614bbaa9fe35b85e6c /win/C#/frmOptions.cs
parent0afdc858afcca936c3cd92b058eb65525ede9b36 (diff)
WinGui:
- Made the "{source}" option for the default path auto name option a bit clearer. Added automatic warning if used in a path, updated tooltips and renamed to source_path to avoid confusion with the option below on the "format:" option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3541 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r--win/C#/frmOptions.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs
index c6519e11a..11034f9a3 100644
--- a/win/C#/frmOptions.cs
+++ b/win/C#/frmOptions.cs
@@ -272,12 +272,17 @@ namespace Handbrake
else
Properties.Settings.Default.autoNamePath = text_an_path.Text;
- if (text_an_path.Text == "{source}" && !optionsWindowLoading)
+ if (text_an_path.Text.ToLower() == "{source_path}" && !optionsWindowLoading)
{
MessageBox.Show(
"Be careful with this feature. Make sure you can write to the same folder as the source! \n\n If you are encoding from a DVD, do not use this feature as HandBrake will not be able to write to the DVD!",
"Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
+
+ if (text_an_path.Text.ToLower().Contains("{source_path}") && text_an_path.Text.ToLower() != "{source_path}")
+ {
+ MessageBox.Show("Note you can not use the {source_path} within a path. {source_path} is the full source file path.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
}
private void check_m4v_CheckedChanged(object sender, EventArgs e)