CodeEditor, ide: ReadOnly mode now blocks all write operations (some of advanced ones were not blocked)

git-svn-id: svn://ultimatepp.org/upp/trunk@11112 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-05-22 09:57:05 +00:00
parent 93253148ea
commit 1e89b14fcd
8 changed files with 139 additions and 120 deletions

View file

@ -611,6 +611,9 @@ void CodeEditor::OpenNormalFindReplace(bool replace)
void CodeEditor::FindReplace(bool pick_selection, bool pick_text, bool replace)
{
if(IsReadOnly())
replace = false;
if(findreplace.IsOpen())
CloseFindReplace();