}
// TODO : test whether parent gets disabled
+ bool formerModal = s_macIsInModalLoop ;
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
wxTheApp->MacDoOneEvent() ;
}
- s_macIsInModalLoop = false ;
+ s_macIsInModalLoop = formerModal ;
// TODO probably reenable the parent window if any