destinationFilename += ".mkv";\r
\r
// Now work out the path where the file will be stored.\r
- // First case: If the destination box doesn't already contain a path, make one.\r
- if (!mainWindow.text_destination.Text.Contains(Path.DirectorySeparatorChar.ToString()))\r
+ // If there is an auto name path, use it...\r
+ if (Properties.Settings.Default.autoNamePath.Trim() == "{source_path}" && !string.IsNullOrEmpty(mainWindow.sourcePath))\r
{\r
- // If there is an auto name path, use it...\r
- if (Properties.Settings.Default.autoNamePath.Trim() == "{source_path}" && !string.IsNullOrEmpty(mainWindow.sourcePath))\r
+ autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.sourcePath), destinationFilename);\r
+ if (autoNamePath == mainWindow.sourcePath)\r
{\r
- autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.sourcePath), destinationFilename);\r
- if (autoNamePath == mainWindow.sourcePath)\r
- {\r
- // Append out_ to files that already exist or is the source file\r
- autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.sourcePath), "output_" + destinationFilename);\r
- }\r
+ // Append out_ to files that already exist or is the source file\r
+ autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.sourcePath), "output_" + destinationFilename);\r
}\r
- else if (Properties.Settings.Default.autoNamePath.Trim() != string.Empty && Properties.Settings.Default.autoNamePath.Trim() != "Click 'Browse' to set the default location")\r
+ }\r
+ // Second case: If the destination box doesn't already contain a path, make one.\r
+ else if (!mainWindow.text_destination.Text.Contains(Path.DirectorySeparatorChar.ToString()))\r
+ {\r
+ if (Properties.Settings.Default.autoNamePath.Trim() != string.Empty && Properties.Settings.Default.autoNamePath.Trim() != "Click 'Browse' to set the default location")\r
{\r
autoNamePath = Path.Combine(Properties.Settings.Default.autoNamePath, destinationFilename);\r
}\r