diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index 3826d8b..03dd1b5 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -1,4 +1,4 @@ -using Crypto_Notepad.Properties; +using Crypto_Notepad.Properties; using System; using System.ComponentModel; using System.Diagnostics; @@ -1026,6 +1026,11 @@ private void SaveAsMainMenu_Click(object sender, EventArgs e) if (string.IsNullOrEmpty(PublicVar.encryptionKey.Get())) { enterKeyForm.ShowDialog(); + if (!PublicVar.okPressed) + { + PublicVar.openFileName = Path.GetFileName(filePath); + return; + } } if (saveFileDialog.ShowDialog() != DialogResult.OK) {