Use file name from .ts file, after import/ocr - thx Christophe :)

This commit is contained in:
Nikolaj Olsson 2016-04-29 13:58:10 +02:00
parent 51d89bbdd6
commit ce428b54f6

View File

@ -9538,6 +9538,11 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.SelectIndexAndEnsureVisible(0);
_fileName = string.Empty;
if (!string.IsNullOrEmpty(formSubOcr.FileName))
{
_fileName = Path.GetFileNameWithoutExtension(formSubOcr.FileName);
_converted = true;
}
Text = Title;
Configuration.Settings.Save();