Index: icon.ico =================================================================== Nie można wyświetlić: plik binarny. svn:mime-type = application/octet-stream Index: idefile.cpp =================================================================== --- idefile.cpp (wersja 9643) +++ idefile.cpp (kopia robocza) @@ -582,6 +582,8 @@ void Ide::EditAsHex() { String path = editfile; + if(editashex.Find(path) >= 0) + return; editastext.RemoveKey(editfile); editashex.FindPut(editfile); byte cs = editor.GetCharset(); @@ -606,6 +608,8 @@ void Ide::EditAsText() { String path = editfile; + if(editastext.Find(path) >= 0) + return; if(!FileExists(path)) return; DoEditAsText(path); @@ -617,6 +621,8 @@ void Ide::EditUsingDesigner() { String path = editfile; + if (editastext.Find(editfile) < 0 && editashex.Find(editfile) < 0) + return; editashex.RemoveKey(editfile); editastext.RemoveKey(editfile); byte cs = editor.GetCharset();