]> git.sesse.net Git - vlc/commitdiff
macosx: improve readability for main window check
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 22 Feb 2014 22:50:39 +0000 (23:50 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 22 Feb 2014 22:52:42 +0000 (23:52 +0100)
modules/gui/macosx/VLCVoutWindowController.m

index f46c77fd6e29b87a9182b7a5013504178019538f..5be5048d2a90a4ad2e835dcb6c8cbd6f5964e8b9 100644 (file)
     // set active video to no BEFORE closing the window to avoid stopping playback
     // due to NSWindowWillCloseNotification
     [o_window setHasActiveVideo: NO];
-    if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"]) {
+    if ([o_window class] != [VLCMainWindow class]) {
         [o_window close];
         [o_window orderOut:self]; // for dark interface
     }