OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmMain.cs
index 91a7c34..2489c8e 100644 (file)
@@ -1109,7 +1109,7 @@ namespace Handbrake
             // Make sure the destination path exists.\r
             if (!Directory.Exists(Path.GetDirectoryName(jobDestination)))\r
             {\r
-                MessageBox.Show("Destination Path does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                MessageBox.Show(string.Format("Destination Path does not exist.\nPath: {0}\n\nThis item was not added to the Queue.", Path.GetDirectoryName(jobDestination)), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
                 return;\r
             }\r
 \r
@@ -1118,7 +1118,7 @@ namespace Handbrake
             {\r
                 DialogResult result =\r
                     MessageBox.Show(\r
-                        "There is already a queue item for this destination path. \n\n If you continue, the encode will be overwritten. Do you wish to continue?",\r
+                        string.Format("There is already a queue item for this destination path.\nDestination Path: {0} \n\nIf you continue, the encode will be overwritten. Do you wish to continue?", jobDestination),\r
                         "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);\r
                 if (result == DialogResult.Yes)\r
                     encodeQueue.Add(query, this.GetTitle(), jobSourcePath, jobDestination, (rtf_query.Text != string.Empty));\r
@@ -1314,9 +1314,8 @@ namespace Handbrake
                 if (title.ShowDialog() == DialogResult.OK)\r
                 {\r
                     sourceTitle = title.Title;\r
-                }\r
-\r
-                SelectSource(ISO_Open.FileName, sourceTitle);\r
+                    SelectSource(ISO_Open.FileName, sourceTitle);\r
+                }          \r
             }\r
             else\r
                 UpdateSourceLabel();\r
@@ -1334,9 +1333,8 @@ namespace Handbrake
                 if (title.ShowDialog() == DialogResult.OK)\r
                 {\r
                     sourceTitle = title.Title;\r
+                    SelectSource(DVD_Open.SelectedPath, sourceTitle);\r
                 }\r
-\r
-                SelectSource(DVD_Open.SelectedPath, sourceTitle);\r
             }\r
             else\r
                 UpdateSourceLabel();\r