mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fixed possible cash in undo window - thx Siegwarth :)
This commit is contained in:
parent
e9b2a5297f
commit
6c88629e74
@ -5711,7 +5711,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
_fileName = _subtitle.UndoHistory(showHistory.SelectedIndex, out subtitleFormatFriendlyName, out _fileDateTime, out _subtitleAlternate, out _subtitleAlternateFileName);
|
||||
|
||||
if (oldFileName.Equals(_fileName, StringComparison.OrdinalIgnoreCase))
|
||||
if (oldFileName == null || oldFileName.Equals(_fileName, StringComparison.OrdinalIgnoreCase))
|
||||
_fileDateTime = oldFileDateTime; // undo will not give overwrite-newer-file warning
|
||||
|
||||
SetTitle();
|
||||
|
Loading…
Reference in New Issue
Block a user