From 467bb0ec6698302ade12b9ee8832076849bf298b Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Mon, 21 Jan 2019 13:53:14 +0000 Subject: [PATCH] Add WX_HOOK_MODAL_DIALOG for wxMessageDialog under wxQT --- src/qt/msgdlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/msgdlg.cpp b/src/qt/msgdlg.cpp index 5fe264a242..75bb23f0ae 100644 --- a/src/qt/msgdlg.cpp +++ b/src/qt/msgdlg.cpp @@ -8,6 +8,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#include "wx/modalhook.h" #include "wx/msgdlg.h" #include "wx/qt/private/utils.h" #include "wx/qt/private/winevent.h" @@ -115,6 +116,7 @@ wxIMPLEMENT_CLASS(wxMessageDialog,wxDialog); int wxMessageDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); wxCHECK_MSG( m_qtWindow, -1, "Invalid dialog" ); // Exec may return a wx identifier if a close event is generated