From eeec0a86a1c508763cbc71ae5a1538285dc6ca88 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 3 Apr 2016 12:08:22 +0000 Subject: [PATCH] EditAsHex does not reload if already active #1402 git-svn-id: svn://ultimatepp.org/upp/trunk@9669 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/idefile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/idefile.cpp b/uppsrc/ide/idefile.cpp index f98350b6f..4fade77ef 100644 --- a/uppsrc/ide/idefile.cpp +++ b/uppsrc/ide/idefile.cpp @@ -582,8 +582,10 @@ void Ide::TriggerAssistSync() void Ide::EditAsHex() { String path = editfile; - editastext.RemoveKey(editfile); - editashex.FindPut(editfile); + if(editashex.Find(path) >= 0) + return; + editastext.RemoveKey(path); + editashex.FindPut(path); byte cs = editor.GetCharset(); FlushFile(); EditFile0(path, cs);