#include "wx/settings.h"
#endif // WX_PRECOMP
-#include "wx/mac/uma.h"
+#include "wx/osx/uma.h"
// Lists to keep track of windows, so we can disable/enable them
{
m_isModalStyle = true;
- SetWindowModality( (WindowRef)MacGetWindowRef(), kWindowModalityAppModal, NULL ) ;
+ SetWindowModality( (WindowRef)GetWXWindow(), kWindowModalityAppModal, NULL ) ;
}
else
{
SetFocus() ;
- WindowRef windowRef = (WindowRef) MacGetWindowRef();
+ WindowRef windowRef = (WindowRef) GetWXWindow();
WindowGroupRef windowGroup;
WindowGroupRef formerParentGroup;
bool resetGroupParent = false;
if ( !m_isModalStyle )
SetModal(true);
- Show(true);
+ if ( IsShown() )
+ DoShowModal();
+ else
+ Show(true);
return GetReturnCode();
}