Fix Mac implementation of --auto-close option

Invoke [NSApp stop:] on the main thread. When invoked from
UpdateDialogCocoa::updateFinished() on the background thread
it had no effect as [NSApp stop:] only stops the current run loop.
This commit is contained in:
Robert Knight 2013-08-30 12:16:22 +01:00
parent 84288ddc6c
commit 1ebf62e1fa

View file

@ -188,7 +188,7 @@ void UpdateDialogCocoa::releaseAutoreleasePool(void* arg)
void UpdateDialogCocoa::quit()
{
[NSApp stop:nil];
[NSApp performSelectorOnMainThread:@selector(stop:) withObject:d->delegate waitUntilDone:false];
}