Minor fix in compare (no crash, just bad code) - thx xylographe :)

This commit is contained in:
niksedk 2016-01-11 19:30:46 +01:00
parent 64095749a2
commit c7d3526df3

View File

@ -85,7 +85,7 @@ namespace Nikse.SubtitleEdit.Forms
_language1 = LanguageAutoDetect.AutoDetectGoogleLanguage(_subtitle1);
CompareSubtitles();
if (string.IsNullOrEmpty(subtitleFileName1))
if (!string.IsNullOrEmpty(subtitleFileName1))
openFileDialog1.InitialDirectory = Path.GetDirectoryName(subtitleFileName1);
openFileDialog1.Filter = Utilities.GetOpenDialogFilter();
subtitleListView1.SelectIndexAndEnsureVisible(0);