mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
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:
parent
903b3a9705
commit
5d43465a75
@ -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 + ";");
|
||||
|
Loading…
Reference in New Issue
Block a user