OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmOptions.cs
index c6519e1..11034f9 100644 (file)
@@ -272,12 +272,17 @@ namespace Handbrake
             else\r
                 Properties.Settings.Default.autoNamePath = text_an_path.Text;\r
 \r
-            if (text_an_path.Text == "{source}" && !optionsWindowLoading)\r
+            if (text_an_path.Text.ToLower() == "{source_path}" && !optionsWindowLoading)\r
             {\r
                 MessageBox.Show(\r
                     "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!",\r
                     "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
             }\r
+\r
+            if (text_an_path.Text.ToLower().Contains("{source_path}") && text_an_path.Text.ToLower() != "{source_path}")\r
+            {\r
+                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);\r
+            }\r
         }\r
 \r
         private void check_m4v_CheckedChanged(object sender, EventArgs e)\r