From d03522cc5c56f22d80ceb0b38022c8013980d79b Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Fri, 10 Feb 2017 23:22:50 +0200 Subject: [PATCH] Fixed bug with file saving --- Crypto Notepad/Form1.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 9a13591..723f0d7 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -1037,11 +1037,10 @@ private void customRTB_DragDrop(object sender, DragEventArgs e) var list = fname as string[]; if (list != null && !string.IsNullOrWhiteSpace(list[0])) { - string opnfile = File.ReadAllText(OpenFile.FileName); - string NameWithotPath = Path.GetFileName(OpenFile.FileName); - if (!OpenFile.FileName.Contains(".cnp")) { + string opnfile = File.ReadAllText(OpenFile.FileName); + string NameWithotPath = Path.GetFileName(OpenFile.FileName); customRTB.Text = opnfile; this.Text = appName + NameWithotPath; string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);