From 7483b6c7b228eddc75c2c7a996eea53a7810efeb Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 9 Dec 2018 22:47:56 +0200 Subject: [PATCH] Fixed empty file name --- Crypto Notepad/Form1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 0e2fb01..a88628f 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -165,7 +165,7 @@ private void openAsotiations() customRTB.Select(Convert.ToInt32(cc2), 0); } - currentFilename = Path.GetFileName(OpenFile.FileName); + currentFilename = Path.GetFileName(args[1]); } private void newToolStripMenuItem_Click_1(object sender, EventArgs e)