Fix #8935: [OSX] Crash when clicking 'Save' due to wrongly-threaded OS call. (#8944)

pull/239/head
Michael Lutz 3 years ago committed by GitHub
parent 295d542911
commit 1cd3a3b070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -224,7 +224,7 @@ bool VideoDriver_Cocoa::AfterBlitterChange()
*/
void VideoDriver_Cocoa::EditBoxLostFocus()
{
[ [ this->cocoaview inputContext ] discardMarkedText ];
[ [ this->cocoaview inputContext ] performSelectorOnMainThread:@selector(discardMarkedText) withObject:nil waitUntilDone:[ NSThread isMainThread ] ];
/* Clear any marked string from the current edit box. */
HandleTextInput(nullptr, true);
}

Loading…
Cancel
Save