Commit b409f07d authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent f063b082
...@@ -636,7 +636,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -636,7 +636,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:) [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
name:NSWorkspaceWillSleepNotification object:nil]; name:NSWorkspaceWillSleepNotification object:nil];
[NSThread detachNewThreadSelector:@selector(lookForCrashLog) toTarget:self withObject:nil]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(lookForCrashLog) withObject:nil waitUntilDone:NO];
} }
- (void)initStrings - (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