adding idle processing in modal loop, closes #10871
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,7 +47,6 @@ void wxDialog::DoShowModal()
|
|||||||
NSWindow* theWindow = GetWXWindow();
|
NSWindow* theWindow = GetWXWindow();
|
||||||
|
|
||||||
NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
|
NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
|
||||||
int response = 0;
|
|
||||||
while (IsModal())
|
while (IsModal())
|
||||||
{
|
{
|
||||||
wxMacAutoreleasePool autoreleasepool;
|
wxMacAutoreleasePool autoreleasepool;
|
||||||
@@ -55,7 +54,10 @@ void wxDialog::DoShowModal()
|
|||||||
// alerts might set this to stopped as well, so it would be
|
// alerts might set this to stopped as well, so it would be
|
||||||
// unsafe
|
// unsafe
|
||||||
[NSApp runModalSession:session];
|
[NSApp runModalSession:session];
|
||||||
// TODO Idle
|
|
||||||
|
// do some idle processing
|
||||||
|
if (wxTheApp)
|
||||||
|
wxTheApp->ProcessIdle();
|
||||||
}
|
}
|
||||||
[NSApp endModalSession:session];
|
[NSApp endModalSession:session];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user