Batch convert settings are remembered (fix bug in reading) - thx XhmikosR :)

This commit is contained in:
niksedk 2014-06-22 14:51:01 +02:00
parent 9313219ffa
commit 3d5da4c608

View File

@ -1563,10 +1563,10 @@ namespace Nikse.SubtitleEdit.Logic
subNode = node.SelectSingleNode("BatchConvertOverwriteExisting"); subNode = node.SelectSingleNode("BatchConvertOverwriteExisting");
if (subNode != null) if (subNode != null)
settings.Tools.BatchConvertOverwriteExisting = Convert.ToBoolean(subNode.InnerText); settings.Tools.BatchConvertOverwriteExisting = Convert.ToBoolean(subNode.InnerText);
subNode = node.SelectSingleNode("BatchConvertOverwriteExisting"); subNode = node.SelectSingleNode("BatchConvertOverwriteOriginal");
if (subNode != null) if (subNode != null)
settings.Tools.BatchConvertOverwriteOriginal = Convert.ToBoolean(subNode.InnerText); settings.Tools.BatchConvertOverwriteOriginal = Convert.ToBoolean(subNode.InnerText);
subNode = node.SelectSingleNode("BatchConvertOverwriteOriginal"); subNode = node.SelectSingleNode("BatchConvertRemoveFormatting");
if (subNode != null) if (subNode != null)
settings.Tools.BatchConvertRemoveFormatting = Convert.ToBoolean(subNode.InnerText); settings.Tools.BatchConvertRemoveFormatting = Convert.ToBoolean(subNode.InnerText);
subNode = node.SelectSingleNode("BatchConvertFixCasing"); subNode = node.SelectSingleNode("BatchConvertFixCasing");