From 7c7ec1b79225b3819f8a1a1c9ee2f514b85763b0 Mon Sep 17 00:00:00 2001 From: JulianSmart Date: Mon, 28 Sep 2015 14:15:40 +0100 Subject: [PATCH] Block events to avoid accidental button disabling --- src/richtext/richtextformatdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextformatdlg.cpp b/src/richtext/richtextformatdlg.cpp index 8f30d9ad27..30376f2796 100644 --- a/src/richtext/richtextformatdlg.cpp +++ b/src/richtext/richtextformatdlg.cpp @@ -115,7 +115,7 @@ wxRichTextFormattingDialog::~wxRichTextFormattingDialog() bool wxRichTextFormattingDialog::Create(long flags, wxWindow* parent, const wxString& title, wxWindowID id, const wxPoint& pos, const wxSize& sz, long style) { - SetExtraStyle(wxDIALOG_EX_CONTEXTHELP|wxWS_EX_VALIDATE_RECURSIVELY); + SetExtraStyle(wxDIALOG_EX_CONTEXTHELP|wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS); #ifdef __WXMAC__ SetWindowVariant(wxWINDOW_VARIANT_SMALL); #endif