Open dialog "All subtitles" will now only have each extension once... possible crash fix

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@348 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-02-25 11:05:32 +00:00
parent 903b3a9705
commit 5d43465a75

View File

@ -1054,12 +1054,11 @@ namespace Nikse.SubtitleEdit.Logic
foreach (SubtitleFormat s in SubtitleFormat.AllSubtitleFormats)
{
if (!sb.ToString().Contains("*" + s.Extension + ";"))
{
sb.Append("*" + s.Extension + ";");
foreach (string ext in s.AlternateExtensions)
{
foreach (string ext in s.AlternateExtensions)
{
if (!sb.ToString().Contains("*" + ext + ";"))
sb.Append("*" + ext + ";");
}
}
}
sb.Append("*" + new Pac().Extension + ";");