Fix the MiniBrowser build with newer clang
[WebKit-https.git] / Tools / MiniBrowser / mac / WK2BrowserWindowController.m
index c14c43d65359dbe960dbd4dca05f59de0ca37c52..e359f231109f6a61e85213428e3302b2245e7ec3 100644 (file)
@@ -228,7 +228,7 @@ static void* keyValueObservingContext = &keyValueObservingContext;
 
 - (void)windowWillClose:(NSNotification *)notification
 {
-    [(BrowserAppDelegate *)[NSApp delegate] browserWindowWillClose:self.window];
+    [(BrowserAppDelegate *)[[NSApplication sharedApplication] delegate] browserWindowWillClose:self.window];
     [self autorelease];
 }