diff --git a/src/libse/Common/InterjectionsRepository.cs b/src/libse/Common/InterjectionsRepository.cs index 898292c99..1a72c4b81 100644 --- a/src/libse/Common/InterjectionsRepository.cs +++ b/src/libse/Common/InterjectionsRepository.cs @@ -87,6 +87,11 @@ namespace Nikse.SubtitleEdit.Core.Common } } + if (!Directory.Exists(Configuration.DictionariesDirectory)) + { + Directory.CreateDirectory(Configuration.DictionariesDirectory); + } + var fullFileName = Path.Combine(Configuration.DictionariesDirectory, userFileName); xmlDocument.Save(fullFileName); }