Commit 43affbe7 authored by David Fuhrmann's avatar David Fuhrmann

macosx: core dialogs: cancel modal loop on main thread

parent a64b70d2
......@@ -126,7 +126,9 @@ static void cancelCallback(void *p_data,
vlc_dialog_id *p_id)
{
@autoreleasepool {
[NSApp stopModalWithCode: 0];
dispatch_async(dispatch_get_main_queue(), ^{
[NSApp stopModalWithCode: 0];
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment