mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Fix weird issue where save as dialog does not handle "." nicely - thx Leon :)
Related to #5472
This commit is contained in:
parent
26851cded3
commit
a9bc1d4b7a
@ -195,7 +195,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonOK.Enabled = false;
|
||||
numericUpDownFontSize.Enabled = false;
|
||||
|
||||
using (var saveDialog = new SaveFileDialog { FileName = SuggestNewVideoFileName(), Filter = "MP4|*.mp4|Matroska|*.mkv|WebM|*.webm" })
|
||||
using (var saveDialog = new SaveFileDialog { FileName = SuggestNewVideoFileName(), Filter = "MP4|*.mp4|Matroska|*.mkv|WebM|*.webm", AddExtension = true })
|
||||
{
|
||||
if (saveDialog.ShowDialog(this) != DialogResult.OK)
|
||||
{
|
||||
@ -286,7 +286,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
fileName += ".x264";
|
||||
}
|
||||
|
||||
return fileName;
|
||||
return fileName.Replace(".", "_") + ".mp4";
|
||||
}
|
||||
|
||||
private void FixRightToLeft(Subtitle subtitle)
|
||||
|
Loading…
Reference in New Issue
Block a user