Commit b75091cc authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: don't do AppKit stuff if you're unsure that it's on the main thread..

(cherry picked from commit b409f07d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bd978f44
......@@ -636,7 +636,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
name:NSWorkspaceWillSleepNotification object:nil];
[NSThread detachNewThreadSelector:@selector(lookForCrashLog) toTarget:self withObject:nil];
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(lookForCrashLog) withObject:nil waitUntilDone:NO];
}
- (void)initStrings
......
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