...and also fixed direct undo shortcut/menu-item-click

This commit is contained in:
niksedk 2014-10-04 15:41:49 +02:00
parent 6c88629e74
commit ab71b183c8

View File

@ -5626,7 +5626,7 @@ namespace Nikse.SubtitleEdit.Forms
}
}
if (oldFileName.Equals(_fileName, StringComparison.OrdinalIgnoreCase))
if (oldFileName == null || oldFileName.Equals(_fileName, StringComparison.OrdinalIgnoreCase))
_fileDateTime = oldFileDateTime; // undo will not give overwrite-newer-file warning
comboBoxSubtitleFormats.SelectedIndexChanged -= ComboBoxSubtitleFormatsSelectedIndexChanged;