From feea0f9569a4015b3cc723e66410587a1ee2834f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 17 Apr 2003 19:48:02 +0000 Subject: [PATCH] Don't call MakeModal on the Mac -- it leaves frames with non-working menubars if there are multiple top-level frames git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/prntbase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 4dbfac6d5d..694f576478 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -504,7 +504,11 @@ wxPreviewFrame::~wxPreviewFrame() void wxPreviewFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) { + // MakeModal doesn't work on wxMac, especially when there + // are multiple top-level windows. +#ifndef __WXMAC__ MakeModal(FALSE); +#endif // Need to delete the printout and the print preview wxPrintout *printout = m_printPreview->GetPrintout(); @@ -537,7 +541,11 @@ void wxPreviewFrame::Initialize() SetAutoLayout( TRUE ); SetSizer( item0 ); + // MakeModal doesn't work on wxMac, especially when there + // are multiple top-level windows. +#ifndef __WXMAC__ MakeModal(TRUE); +#endif Layout(); } -- 2.45.2