From 02f91c52a0b9f557fa63b86605b64b261c8bbbad Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 24 Jan 2021 12:31:04 -0800 Subject: [PATCH] Avoid nag confirmation in scintilla If we need to confirm abandoning changes, we need to do it in the dialog where we check for dialog changes. --- common/scintilla_tricks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index ebc61bf9b5..1699e95332 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -197,7 +197,7 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) m_te->AutoCompCancel(); m_suppressAutocomplete = true; // Don't run autocomplete again on the next char... } - else if( IsOK( m_te->GetParent(), _( "Cancel changes?" ) ) ) + else { aEvent.Skip(); }